From 7ced4740fd14fd04d4e8cf04248e486b4793e89a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 31 Dec 2019 01:31:27 +0100 Subject: [PATCH] Silence a bunch of macOS-specific warnings. --- doc/snippets/MagnumDebugTools.cpp | 3 +++ src/Magnum/Platform/WindowlessCglApplication.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/doc/snippets/MagnumDebugTools.cpp b/doc/snippets/MagnumDebugTools.cpp index 1b26c53e6..a6a5ae09e 100644 --- a/doc/snippets/MagnumDebugTools.cpp +++ b/doc/snippets/MagnumDebugTools.cpp @@ -100,3 +100,6 @@ CORRADE_COMPARE_WITH(actual.pixels().flipped<0>(), expected, } } }; + +/* To prevent macOS ranlib complaining that there are no symbols */ +int main() {} diff --git a/src/Magnum/Platform/WindowlessCglApplication.h b/src/Magnum/Platform/WindowlessCglApplication.h index 45af87c49..6acc84c94 100644 --- a/src/Magnum/Platform/WindowlessCglApplication.h +++ b/src/Magnum/Platform/WindowlessCglApplication.h @@ -41,6 +41,9 @@ #include "Magnum/GL/OpenGL.h" #include "Magnum/Platform/Platform.h" +#ifndef DOXYGEN_GENERATING_OUTPUT +#define GL_SILENCE_DEPRECATION /* YES I KNOW, APPLE! FFS */ +#endif #include #include #include