Disable -Wcast-qual in qtwayland
We have a lot of generated C source code that needs to do casting and C doesn't have const_cast, so the -Wcast-qual option produces a lot of noise. Let's make sure it isn't enabled in qmake.conf or qt_common.prf. Change-Id: Iee8cbc07c4434ce9b560ffff13c9635861a8eca9 Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>
This commit is contained in:
parent
30b55342fc
commit
62b155bedf
@ -10,6 +10,9 @@ MODULE_PLUGIN_TYPES = \
|
||||
|
||||
load(qt_module)
|
||||
|
||||
# We have a bunch of C code with casts, so we can't have this option
|
||||
QMAKE_CXXFLAGS_WARN_ON -= -Wcast-qual
|
||||
|
||||
CONFIG -= precompile_header
|
||||
CONFIG -= create_cmake
|
||||
CONFIG += link_pkgconfig qpa/genericunixfontdatabase wayland-scanner
|
||||
|
@ -1,6 +1,9 @@
|
||||
PLUGIN_TYPE = wayland-graphics-integration-client
|
||||
load(qt_plugin)
|
||||
|
||||
# We have a bunch of C code with casts, so we can't have this option
|
||||
QMAKE_CXXFLAGS_WARN_ON -= -Wcast-qual
|
||||
|
||||
QT += waylandclient-private
|
||||
|
||||
include(../../../../hardwareintegration/client/drm-egl-server/drm-egl-server.pri)
|
||||
|
@ -1,6 +1,9 @@
|
||||
PLUGIN_TYPE = wayland-graphics-integration-client
|
||||
load(qt_plugin)
|
||||
|
||||
# We have a bunch of C code with casts, so we can't have this option
|
||||
QMAKE_CXXFLAGS_WARN_ON -= -Wcast-qual
|
||||
|
||||
QT += waylandclient-private
|
||||
|
||||
include(../../../../hardwareintegration/client/xcomposite-egl/xcomposite-egl.pri)
|
||||
|
Loading…
x
Reference in New Issue
Block a user