block deprecation warnings from libgsf

with an uglu gcc progma
This commit is contained in:
John Cupitt 2020-11-29 14:41:19 +00:00
parent deab095b3c
commit c088097b50
2 changed files with 12 additions and 0 deletions

View File

@ -173,7 +173,13 @@
#ifdef HAVE_GSF #ifdef HAVE_GSF
/* Disable deprecation warnings from gsf. There are loads, and still not
* patched as of 12/2020.
*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include <gsf/gsf.h> #include <gsf/gsf.h>
#pragma GCC diagnostic pop
/* Simple wrapper around libgsf. /* Simple wrapper around libgsf.
* *

View File

@ -90,8 +90,14 @@
#include <limits.h> #include <limits.h>
#include <string.h> #include <string.h>
/* Disable deprecation warnings from gsf. There are loads, and still not
* patched as of 12/2020.
*/
#ifdef HAVE_GSF #ifdef HAVE_GSF
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include <gsf/gsf.h> #include <gsf/gsf.h>
#pragma GCC diagnostic pop
#endif /*HAVE_GSF*/ #endif /*HAVE_GSF*/
#include <vips/vips.h> #include <vips/vips.h>