Remove -Wcast-align from QMAKE_CXXFLAGS.
x86 doesn't care about alignment, and on all other platforms where it does something it causes build errors, so instead of removing it on those platforms just don't enable it at all. Change-Id: Idfeb387099b28af60ba161b6ca678b7c9df17fe1 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>bb10
parent
36009d6b8f
commit
19d49de6f1
|
|
@ -13,16 +13,11 @@
|
|||
*-g++*: QMAKE_CXXFLAGS += -Woverloaded-virtual -Wshadow -Wundef
|
||||
|
||||
# Other nice flags
|
||||
*-g++*: QMAKE_CXXFLAGS += -Wnon-virtual-dtor -ansi -Wcast-align -Wchar-subscripts -Wpointer-arith -Wformat-security
|
||||
*-g++*: QMAKE_CXXFLAGS += -Wnon-virtual-dtor -ansi -Wchar-subscripts -Wpointer-arith -Wformat-security
|
||||
|
||||
# Enable pedantic mode, but accept variadic macros and 'long long' usage.
|
||||
*-g++*: QMAKE_CXXFLAGS += -Wno-long-long -Wno-variadic-macros -pedantic-errors
|
||||
|
||||
contains(QT_ARCH,arm)|contains(QT_ARCH,mips) {
|
||||
# There are outstanding alignment issues in some container classes.
|
||||
*-g++*:QMAKE_CXXFLAGS -= -Wcast-align
|
||||
}
|
||||
|
||||
QMAKE_CXXFLAGS += -DQT_NO_CAST_TO_ASCII \
|
||||
-DQT_NO_CAST_FROM_ASCII \
|
||||
-DQT_STRICT_ITERATORS \
|
||||
|
|
|
|||
Loading…
Reference in New Issue