summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2023-09-21 16:01:43 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2023-09-22 20:08:05 +0200
commita0792da1266fc6070fa3fb54171884c2fb6d4122 (patch)
tree216ceeaa7ebf4d60d75ca65e145c5991f569f121 /src/plugins/platforms/xcb
parent0e23865c9ed0cf6560df8c7c5fcea6e0eef1160e (diff)
xcb: Work around GCC ABI issue causing warning on ARM
In member function ‘virtual QDpi QXcbScreen::logicalBaseDpi() const’: qxcbscreen.h:139:42: note: parameter passing for argument of type ‘std::pair<double, double>’ when C++17 is enabled changed to match C++14 in GCC 10.1 QDpi logicalBaseDpi() const override { return QDpi(96, 96); } It's not possible to silence this warning/note using pragmas. Pick-to: 6.6 6.5 6.2 Change-Id: I913a1753ce0c82ac17951faa58b0a88bf1daa4db Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/plugins/platforms/xcb')
-rw-r--r--src/plugins/platforms/xcb/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/CMakeLists.txt b/src/plugins/platforms/xcb/CMakeLists.txt
index fa43e7522b..9322916d21 100644
--- a/src/plugins/platforms/xcb/CMakeLists.txt
+++ b/src/plugins/platforms/xcb/CMakeLists.txt
@@ -5,6 +5,11 @@
## XcbQpaPrivate Module:
#####################################################################
+if(GCC)
+ # Work around GCC ABI issues
+ add_compile_options(-Wno-psabi)
+endif()
+
qt_internal_add_module(XcbQpaPrivate
CONFIG_MODULE_NAME xcb_qpa_lib
INTERNAL_MODULE