Supress Wcast-function-type.
--HG-- branch : develop
This commit is contained in:
parent
37b07c1512
commit
35245cd161
|
@ -343,6 +343,7 @@ GCC_DEBUG_CXXFLAGS += \
|
||||||
-Wno-error=strict-overflow \
|
-Wno-error=strict-overflow \
|
||||||
-Wundef \
|
-Wundef \
|
||||||
-Wno-unused \
|
-Wno-unused \
|
||||||
|
-Wno-unknown-pragmas \
|
||||||
-ftrapv
|
-ftrapv
|
||||||
|
|
||||||
# Good support Q_NULLPTR came later
|
# Good support Q_NULLPTR came later
|
||||||
|
@ -395,6 +396,11 @@ g++7:GCC_DEBUG_CXXFLAGS += \
|
||||||
-Walloc-zero \
|
-Walloc-zero \
|
||||||
-Wnonnull
|
-Wnonnull
|
||||||
|
|
||||||
|
# Since GCC 7
|
||||||
|
g++7:GCC_DEBUG_CXXFLAGS += \
|
||||||
|
-Wmultistatement-macros \
|
||||||
|
-Warray-bounds
|
||||||
|
|
||||||
# Usefull Clang warnings keys.
|
# Usefull Clang warnings keys.
|
||||||
CLANG_DEBUG_CXXFLAGS += \
|
CLANG_DEBUG_CXXFLAGS += \
|
||||||
-O0 \ # Turn off oprimization.
|
-O0 \ # Turn off oprimization.
|
||||||
|
@ -795,7 +801,7 @@ ICC_DEBUG_CXXFLAGS += \
|
||||||
-Wstrict-prototypes \
|
-Wstrict-prototypes \
|
||||||
-Wtrigraphs \
|
-Wtrigraphs \
|
||||||
-Wuninitialized \
|
-Wuninitialized \
|
||||||
-Wunknown-pragmas \
|
-Wno-unknown-pragmas \
|
||||||
-Wunused-variable \
|
-Wunused-variable \
|
||||||
-Wno-pch-messages \
|
-Wno-pch-messages \
|
||||||
-wd1418,2012,2015,2017,2022,2013 #disable warnings. Syntax example -wd1572,873,2259,2261
|
-wd1418,2012,2015,2017,2022,2013 #disable warnings. Syntax example -wd1572,873,2259,2261
|
||||||
|
@ -805,6 +811,7 @@ ICC_DEBUG_CXXFLAGS += \
|
||||||
GCC_DEBUG_CXXFLAGS += \
|
GCC_DEBUG_CXXFLAGS += \
|
||||||
-O0 \
|
-O0 \
|
||||||
-Wall \
|
-Wall \
|
||||||
|
-Wno-unknown-pragmas \
|
||||||
-Wno-error=strict-overflow \
|
-Wno-error=strict-overflow \
|
||||||
-Wextra \
|
-Wextra \
|
||||||
-fno-omit-frame-pointer # Need for exchndl.dll
|
-fno-omit-frame-pointer # Need for exchndl.dll
|
||||||
|
|
|
@ -1128,6 +1128,7 @@ QT_WARNING_POP
|
||||||
int iArgCount = pTok->Fun.argc;
|
int iArgCount = pTok->Fun.argc;
|
||||||
|
|
||||||
QT_WARNING_PUSH
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_GCC("-Wcast-function-type")
|
||||||
QT_WARNING_DISABLE_CLANG("-Wundefined-reinterpret-cast")
|
QT_WARNING_DISABLE_CLANG("-Wundefined-reinterpret-cast")
|
||||||
QT_WARNING_DISABLE_MSVC(4191)
|
QT_WARNING_DISABLE_MSVC(4191)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user