summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-09-11 15:11:04 +0200
committerLars Knoll <lars.knoll@qt.io>2020-09-13 19:03:47 +0000
commit4e0fb694c7448f22969df4f17603051a73b06bc0 (patch)
tree126b527b20984b0fb4f013ef0441a7a18bf9a811 /src
parent2c698a6d07c1e8fb1cca417892c017f9591852c3 (diff)
Silence warnings from using deprecated CUPS APIs
Apparently these APIs don't have any replacements that we can use, so we have to continue to depend on them for now. Silence the compiler warnings related to them, to avoid unnecessary noise. Change-Id: I1838e3c82bedd31529fdad8debc577dca17613e5 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/printsupport/cups/qppdprintdevice.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/printsupport/cups/qppdprintdevice.cpp b/src/plugins/printsupport/cups/qppdprintdevice.cpp
index 7503e70a4c..6a5e7504e5 100644
--- a/src/plugins/printsupport/cups/qppdprintdevice.cpp
+++ b/src/plugins/printsupport/cups/qppdprintdevice.cpp
@@ -52,6 +52,10 @@
QT_BEGIN_NAMESPACE
+// avoid all the warnings about using deprecated API from CUPS (as there is no real replacement)
+QT_WARNING_PUSH
+QT_WARNING_DISABLE_DEPRECATED
+
QPpdPrintDevice::QPpdPrintDevice(const QString &id)
: QPlatformPrintDevice(id),
m_cupsDest(0),
@@ -508,4 +512,6 @@ cups_ptype_e QPpdPrintDevice::printerTypeFlags() const
return static_cast<cups_ptype_e>(printerOption("printer-type").toUInt());
}
+QT_WARNING_POP
+
QT_END_NAMESPACE