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. --- intern/cycles/device/device_cpu.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'intern/cycles/device') diff --git a/intern/cycles/device/device_cpu.cpp b/intern/cycles/device/device_cpu.cpp index 6be60f8bbb6..3b0d0fb9806 100644 --- a/intern/cycles/device/device_cpu.cpp +++ b/intern/cycles/device/device_cpu.cpp @@ -21,7 +21,10 @@ #ifdef WITH_OSL /* So no context pollution happens from indirectly included windows.h */ # include "util/util_windows.h" +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wdeprecated-register" # include +# pragma clang diagnostic pop #endif #include "device/device.h" -- cgit v1.2.3