diff --git a/oscar/oscar.pro b/oscar/oscar.pro index 480b46fb..24a68f10 100644 --- a/oscar/oscar.pro +++ b/oscar/oscar.pro @@ -488,7 +488,10 @@ QMAKE_CXXFLAGS += -Werror # Make deprecation warnings just warnings QMAKE_CFLAGS += -Wno-error=deprecated-declarations QMAKE_CXXFLAGS += -Wno-error=deprecated-declarations - +lessThan(QT_MAJOR_VERSION,5)|lessThan(QT_MINOR_VERSION,9) { + QMAKE_CFLAGS += -Wno-error=strict-aliasing + QMAKE_CXXFLAGS += -Wno-error=strict-aliasing +} # Create a debug GUI build by adding "CONFIG+=memdebug" to your qmake command memdebug {