Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorStefan Werner <stefan.werner@tangent-animation.com>2018-06-26 00:02:01 +0300
committerStefan Werner <stefan.werner@tangent-animation.com>2018-06-26 00:02:01 +0300
commitd53093953f8f3b58600cb19020ecbe0b5f254b52 (patch)
tree44106bd380162251a755b82e490ffd1371e09cf5 /source
parent8a7f317666caa41aad0428b5ed3f399cdfbbd816 (diff)
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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/imbuf/intern/openexr/openexr_api.cpp4
1 files changed, 4 insertions, 0 deletions
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 <algorithm>
#include <iostream>
+
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-register"
#include <half.h>
#include <Iex.h>
#include <ImfVersion.h>
@@ -64,6 +67,7 @@
#include <ImfTiledOutputPart.h>
#include <ImfPartType.h>
#include <ImfPartHelper.h>
+#pragma clang diagnostic pop
#include "DNA_scene_types.h" /* For OpenEXR compression constants */