diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2022-02-22 17:49:50 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2022-02-24 15:01:05 +0000 |
commit | 54532a89a2f6abdb6142680379c60bef4b94bd16 (patch) | |
tree | 0b63aad952ed35dbef606633973f5f134d80f8d2 /cups | |
parent | 7d90551531b331e0ea7e14c0776be198211b604d (diff) | |
download | ghostpdl-54532a89a2f6abdb6142680379c60bef4b94bd16.tar.gz |
Fix building with "local" cups sources
Also cups device: Ignore deprecated function warnings
Using gcc pragmas
Diffstat (limited to 'cups')
-rw-r--r-- | cups/gdevcups.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cups/gdevcups.c b/cups/gdevcups.c index e3c3c46c3..eb20ed201 100644 --- a/cups/gdevcups.c +++ b/cups/gdevcups.c @@ -76,6 +76,12 @@ #include <stdlib.h> #include <ctype.h> + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + #include <cups/raster.h> #include <cups/ppd.h> #include <math.h> @@ -6093,5 +6099,8 @@ cups_spec_op(gx_device *dev_, int op, void *data, int datasize) return gx_default_dev_spec_op(dev_, op, data, datasize); } +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif /* */ |