From 4e0fb694c7448f22969df4f17603051a73b06bc0 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Fri, 11 Sep 2020 15:11:04 +0200 Subject: 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 --- src/plugins/printsupport/cups/qppdprintdevice.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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(printerOption("printer-type").toUInt()); } +QT_WARNING_POP + QT_END_NAMESPACE -- cgit v1.2.3