Revert "Turned off clang warnings in third party includes."
authorStefan Werner <stefan.werner@tangent-animation.com>
Tue, 26 Jun 2018 08:26:56 +0000 (10:26 +0200)
committerStefan Werner <stefan.werner@tangent-animation.com>
Tue, 26 Jun 2018 08:26:56 +0000 (10:26 +0200)
This reverts commit d53093953f8f3b58600cb19020ecbe0b5f254b52.

intern/cycles/device/device_cpu.cpp
intern/cycles/kernel/osl/osl_closures.cpp
intern/cycles/kernel/osl/osl_shader.cpp
intern/cycles/render/shader.h
intern/cycles/util/util_image.h
intern/cycles/util/util_param.h
source/blender/imbuf/intern/openexr/openexr_api.cpp

index 3b0d0fb9806917d123e29c5bc5dde84765b09435..6be60f8bbb6ec096c190968059dc87abec854664 100644 (file)
 #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 <OSL/oslexec.h>
-#  pragma clang diagnostic pop
 #endif
 
 #include "device/device.h"
index e928006e41a59d8b434b8783400c39f061c5ea94..6a1e52d7d1690c7015d3798912504835b347c9a7 100644 (file)
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wdeprecated-register"
-#pragma clang diagnostic ignored "-Wexpansion-to-defined"
 #include <OSL/genclosure.h>
 #include <OSL/oslclosure.h>
-#pragma clang diagnostic pop
 
 #include "kernel/osl/osl_closures.h"
 #include "kernel/osl/osl_shader.h"
index 8757b9a748bc64175aa6eae3118aa6d550328a84..b7d1c629291973ffaf8a015ba8459010e7ea86ab 100644 (file)
  * limitations under the License.
  */
 
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wdeprecated-register"
 #include <OSL/oslexec.h>
-#pragma clang diagnostic pop
 
 #include "kernel/kernel_compat_cpu.h"
 #include "kernel/kernel_montecarlo.h"
index dd346ef5795a31e4a8bd16ed06f8fee3198f1e59..0353da90013aee2de5a3abad7a69c84d41d96f18 100644 (file)
 #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 <OSL/oslexec.h>
-#  pragma clang diagnostic pop
 #endif
 
 #include "render/attribute.h"
index 38694c87d0e1c5039fcafec7e4abbb31d919cc71..18876841b5bbdb3bf4ea5afe1723ec086c5b425d 100644 (file)
 
 /* OpenImageIO is used for all image file reading and writing. */
 
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wdeprecated-register"
-#pragma clang diagnostic ignored "-Wexpansion-to-defined"
 #include <OpenImageIO/imageio.h>
-#pragma clang diagnostic pop
 
 #include "util/util_vector.h"
 
index 419a8010d5a3e29e8ac124a8c4b661f538169199..69bcbf80a781f16912865f213cef2f10482dbc3d 100644 (file)
 /* Parameter value lists from OpenImageIO are used to store custom properties
  * on various data, which can then later be used in shaders. */
 
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wdeprecated-register"
-#pragma clang diagnostic ignored "-Wexpansion-to-defined"
 #include <OpenImageIO/paramlist.h>
 #include <OpenImageIO/typedesc.h>
 #include <OpenImageIO/ustring.h>
-#pragma clang diagnostic pop
 
 CCL_NAMESPACE_BEGIN
 
index 13c033523fa525f1388b366c4ed79deab9b6820a..a52ae75e87b4df611ed6df4079d3e4303a9b00a4 100644 (file)
@@ -40,9 +40,6 @@
 #include <algorithm>
 #include <iostream>
 
-
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wdeprecated-register"
 #include <half.h>
 #include <Iex.h>
 #include <ImfVersion.h>
@@ -67,7 +64,6 @@
 #include <ImfTiledOutputPart.h>
 #include <ImfPartType.h>
 #include <ImfPartHelper.h>
-#pragma clang diagnostic pop
 
 #include "DNA_scene_types.h" /* For OpenEXR compression constants */