[gimp] plug-ins: suppress deprecation warnings from the OpenEXR headers



commit d223522b8bb9cf7af74631494c8b64548e5d717e
Author: Michael Natterer <mitch gimp org>
Date:   Sun Jul 21 19:56:29 2019 +0200

    plug-ins: suppress deprecation warnings from the OpenEXR headers
    
    "Fix" straight from stackoverflow, I have no idea how this builds
    on anything except gcc or clang.

 plug-ins/file-exr/openexr-wrapper.cc | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/plug-ins/file-exr/openexr-wrapper.cc b/plug-ins/file-exr/openexr-wrapper.cc
index c6786468f2..8ad1cec85e 100644
--- a/plug-ins/file-exr/openexr-wrapper.cc
+++ b/plug-ins/file-exr/openexr-wrapper.cc
@@ -48,11 +48,15 @@
 #endif
 #endif
 
+/* ignore deprecated warnings from OpenEXR headers */
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated"
 #include <ImfInputFile.h>
 #include <ImfChannelList.h>
 #include <ImfRgbaFile.h>
 #include <ImfRgbaYca.h>
 #include <ImfStandardAttributes.h>
+#pragma GCC diagnostic pop
 
 #include "exr-attribute-blob.h"
 #include "openexr-wrapper.h"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]