Supress Wcast-function-type.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-04-03 15:42:12 +03:00
parent 37b07c1512
commit 35245cd161
2 changed files with 9 additions and 1 deletions

View File

@ -343,6 +343,7 @@ GCC_DEBUG_CXXFLAGS += \
-Wno-error=strict-overflow \
-Wundef \
-Wno-unused \
-Wno-unknown-pragmas \
-ftrapv
# Good support Q_NULLPTR came later
@ -395,6 +396,11 @@ g++7:GCC_DEBUG_CXXFLAGS += \
-Walloc-zero \
-Wnonnull
# Since GCC 7
g++7:GCC_DEBUG_CXXFLAGS += \
-Wmultistatement-macros \
-Warray-bounds
# Usefull Clang warnings keys.
CLANG_DEBUG_CXXFLAGS += \
-O0 \ # Turn off oprimization.
@ -795,7 +801,7 @@ ICC_DEBUG_CXXFLAGS += \
-Wstrict-prototypes \
-Wtrigraphs \
-Wuninitialized \
-Wunknown-pragmas \
-Wno-unknown-pragmas \
-Wunused-variable \
-Wno-pch-messages \
-wd1418,2012,2015,2017,2022,2013 #disable warnings. Syntax example -wd1572,873,2259,2261
@ -805,6 +811,7 @@ ICC_DEBUG_CXXFLAGS += \
GCC_DEBUG_CXXFLAGS += \
-O0 \
-Wall \
-Wno-unknown-pragmas \
-Wno-error=strict-overflow \
-Wextra \
-fno-omit-frame-pointer # Need for exchndl.dll

View File

@ -1128,6 +1128,7 @@ QT_WARNING_POP
int iArgCount = pTok->Fun.argc;
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wcast-function-type")
QT_WARNING_DISABLE_CLANG("-Wundefined-reinterpret-cast")
QT_WARNING_DISABLE_MSVC(4191)