From d53093953f8f3b58600cb19020ecbe0b5f254b52 Mon Sep 17 00:00:00 2001 From: Stefan Werner Date: Mon, 25 Jun 2018 23:02:01 +0200 Subject: Turned off clang warnings in third party includes. The latest clang compiler (at least the one in Xcode 9.4.1) warns about the register keyword and macro expansions using defined(). Since these warnings come from third party code, we can't address them directly in Blender. Silencing them via #pramgas will at least keep the warnings during a build down to the ones that are relevant to Blender code. --- source/blender/imbuf/intern/openexr/openexr_api.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/imbuf') diff --git a/source/blender/imbuf/intern/openexr/openexr_api.cpp b/source/blender/imbuf/intern/openexr/openexr_api.cpp index a52ae75e87b..13c033523fa 100644 --- a/source/blender/imbuf/intern/openexr/openexr_api.cpp +++ b/source/blender/imbuf/intern/openexr/openexr_api.cpp @@ -40,6 +40,9 @@ #include #include + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-register" #include #include #include @@ -64,6 +67,7 @@ #include #include #include +#pragma clang diagnostic pop #include "DNA_scene_types.h" /* For OpenEXR compression constants */ -- cgit v1.2.3