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.
This commit is contained in:
Michael Natterer 2019-07-21 19:56:29 +02:00
parent 32d789e355
commit d223522b8b
1 changed files with 4 additions and 0 deletions

View File

@ -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"