From c82f73666d87549e5884ddcd253ec3561d840b9b Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Fri, 2 Oct 2020 10:47:47 +0200 Subject: Replace Q_DECL_UNUSED with [[maybe_unused]] Use C++17 attribute directly Change-Id: Id853e7a5117065e4adb549f81303c1820fe198ce Reviewed-by: Thiago Macieira --- src/gui/painting/qrgb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/painting/qrgb.h') diff --git a/src/gui/painting/qrgb.h b/src/gui/painting/qrgb.h index 562b763aa7..8218ecd7ed 100644 --- a/src/gui/painting/qrgb.h +++ b/src/gui/painting/qrgb.h @@ -49,7 +49,7 @@ QT_BEGIN_NAMESPACE typedef unsigned int QRgb; // RGB triplet // non-namespaced Qt global variable -Q_DECL_UNUSED const QRgb RGB_MASK = 0x00ffffff; // masks RGB values +[[maybe_unused]] const QRgb RGB_MASK = 0x00ffffff; // masks RGB values inline constexpr int qRed(QRgb rgb) // get red part of RGB { return ((rgb >> 16) & 0xff); } -- cgit v1.2.3