Added MSVC warnings.
--HG-- branch : develop
This commit is contained in:
parent
ed2bbd97a3
commit
483e56866d
37
common.pri
37
common.pri
|
@ -675,4 +675,41 @@ CLANG_DEBUG_CXXFLAGS += \
|
|||
-pedantic \
|
||||
-fno-omit-frame-pointer \ # Need for exchndl.dll
|
||||
-fms-extensions # Need for pragma message
|
||||
|
||||
MSVC_DEBUG_CXXFLAGS += \
|
||||
-Wall \
|
||||
-wd4061 \ # enum value is not *explicitly* handled in switch
|
||||
-wd4099 \ # first seen using 'struct' now seen using 'class'
|
||||
-wd4127 \ # conditional expression is constant
|
||||
-wd4217 \ # member template isn't copy constructor
|
||||
-wd4250 \ # inherits (implements) some member via dominance
|
||||
-wd4251 \ # needs to have dll-interface to be used by clients
|
||||
-wd4275 \ # exported class derived from non-exported class
|
||||
-wd4347 \ # "behavior change", function called instead of template
|
||||
-wd4355 \ # "'this': used in member initializer list
|
||||
-wd4505 \ # unreferenced function has been removed
|
||||
-wd4510 \ # default constructor could not be generated
|
||||
-wd4511 \ # copy constructor could not be generated
|
||||
-wd4512 \ # assignment operator could not be generated
|
||||
-wd4513 \ # destructor could not be generated
|
||||
-wd4610 \ # can never be instantiated user defined constructor required
|
||||
-wd4623 \ # default constructor could not be generated
|
||||
-wd4624 \ # destructor could not be generated
|
||||
-wd4625 \ # copy constructor could not be generated
|
||||
-wd4626 \ # assignment operator could not be generated
|
||||
-wd4640 \ # a local static object is not thread-safe
|
||||
-wd4661 \ # a member of the template class is not defined.
|
||||
-wd4670 \ # a base class of an exception class is inaccessible for catch
|
||||
-wd4672 \ # a base class of an exception class is ambiguous for catch
|
||||
-wd4673 \ # a base class of an exception class is inaccessible for catch
|
||||
-wd4675 \ # resolved overload was found by argument-dependent lookup
|
||||
-wd4702 \ # unreachable code, e.g. in <list> header.
|
||||
-wd4710 \ # call was not inlined
|
||||
-wd4711 \ # call was inlined
|
||||
-wd4820 \ # some padding was added
|
||||
-wd4917 \ # a GUID can only be associated with a class, interface or namespace
|
||||
# The following are real warnings but are generated by almost all MS headers, including
|
||||
# standard library headers, so it's impractical to leave them on.
|
||||
-wd4619 \ # there is no warning number 'XXXX'
|
||||
-wd4668 # XXX is not defined as a preprocessor macro
|
||||
}
|
||||
|
|
|
@ -264,15 +264,10 @@ OTHER_FILES += \
|
|||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||
$$enable_ccache()
|
||||
|
||||
include(warnings.pri)
|
||||
|
||||
CONFIG(debug, debug|release){
|
||||
# Debug mode
|
||||
unix {
|
||||
include(warnings.pri)
|
||||
} else {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
}
|
||||
}
|
||||
DEFINES += "BUILD_REVISION=\\\"unknown\\\""
|
||||
}else{
|
||||
# Release mode
|
||||
|
@ -282,10 +277,6 @@ CONFIG(debug, debug|release){
|
|||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||
}
|
||||
|
||||
checkWarnings{
|
||||
unix:include(warnings.pri)
|
||||
}
|
||||
|
||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||
DEFINES += V_NO_DEBUG
|
||||
} else {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#Turn on compilers warnings.
|
||||
*-g++{
|
||||
unix {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||
|
@ -20,9 +21,9 @@
|
|||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||
QMAKE_LFLAGS += -fsanitize=address
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
clang*{
|
||||
clang*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||
|
@ -39,9 +40,9 @@ clang*{
|
|||
QMAKE_CXXFLAGS -= \
|
||||
-Wundefined-reinterpret-cast \
|
||||
-Wmissing-prototypes # rcc folder
|
||||
}
|
||||
}
|
||||
|
||||
*-icc-*{
|
||||
*-icc-*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -51,4 +52,21 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
} else { # Windows
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
|
||||
win32-msvc*{
|
||||
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
#QMAKE_CXXFLAGS += -WX
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -63,17 +63,10 @@ OTHER_FILES += \
|
|||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||
$$enable_ccache()
|
||||
|
||||
include(warnings.pri)
|
||||
|
||||
CONFIG(debug, debug|release){
|
||||
# Debug mode
|
||||
unix {
|
||||
include(warnings.pri)
|
||||
} else {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
}
|
||||
}
|
||||
|
||||
#Calculate latest tag distance and build revision only in release mode. Change number each time requare
|
||||
#recompilation precompiled headers file.
|
||||
DEFINES += "LATEST_TAG_DISTANCE=0"
|
||||
|
@ -86,10 +79,6 @@ CONFIG(debug, debug|release){
|
|||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||
}
|
||||
|
||||
checkWarnings{
|
||||
unix:include(warnings.pri)
|
||||
}
|
||||
|
||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||
DEFINES += V_NO_DEBUG
|
||||
} else {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#Turn on compilers warnings.
|
||||
*-g++{
|
||||
unix {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||
|
@ -21,9 +22,9 @@
|
|||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||
QMAKE_LFLAGS += -fsanitize=address
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
clang*{
|
||||
clang*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||
|
@ -41,9 +42,9 @@ clang*{
|
|||
QMAKE_CXXFLAGS -= \
|
||||
-Wmissing-prototypes \
|
||||
-Wundefined-reinterpret-cast
|
||||
}
|
||||
}
|
||||
|
||||
*-icc-*{
|
||||
*-icc-*{
|
||||
QMAKE_CXXFLAGS+= \
|
||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -54,4 +55,21 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
} else { # Windows
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
|
||||
win32-msvc*{
|
||||
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
#QMAKE_CXXFLAGS += -WX
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,17 +45,9 @@ UI_DIR = uic
|
|||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||
$$enable_ccache()
|
||||
|
||||
CONFIG(debug, debug|release){
|
||||
# Debug mode
|
||||
unix {
|
||||
include(warnings.pri)
|
||||
} else {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
}
|
||||
}
|
||||
include(warnings.pri)
|
||||
|
||||
}else{
|
||||
CONFIG(release, debug|release){
|
||||
# Release mode
|
||||
!win32-msvc*:CONFIG += silent
|
||||
DEFINES += V_NO_ASSERT
|
||||
|
@ -63,10 +55,6 @@ CONFIG(debug, debug|release){
|
|||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||
}
|
||||
|
||||
checkWarnings{
|
||||
unix:include(warnings.pri)
|
||||
}
|
||||
|
||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||
# do nothing
|
||||
} else {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#Turn on compilers warnings.
|
||||
*-g++{
|
||||
unix {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -19,9 +20,9 @@
|
|||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||
QMAKE_LFLAGS += -fsanitize=address
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
clang*{
|
||||
clang*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -31,9 +32,9 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
*-icc-*{
|
||||
*-icc-*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||
|
@ -42,4 +43,21 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
} else { # Windows
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
|
||||
win32-msvc*{
|
||||
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
#QMAKE_CXXFLAGS += -WX
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,17 +53,9 @@ RESOURCES += \
|
|||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||
$$enable_ccache()
|
||||
|
||||
CONFIG(debug, debug|release){
|
||||
# Debug mode
|
||||
unix {
|
||||
include(warnings.pri)
|
||||
} else {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
}
|
||||
}
|
||||
include(warnings.pri)
|
||||
|
||||
}else{
|
||||
CONFIG(release, debug|release){
|
||||
# Release mode
|
||||
!win32-msvc*:CONFIG += silent
|
||||
DEFINES += V_NO_ASSERT
|
||||
|
@ -71,10 +63,6 @@ CONFIG(debug, debug|release){
|
|||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||
}
|
||||
|
||||
checkWarnings{
|
||||
unix:include(warnings.pri)
|
||||
}
|
||||
|
||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||
# do nothing
|
||||
} else {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#Turn on compilers warnings.
|
||||
*-g++{
|
||||
unix {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -19,9 +20,9 @@
|
|||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||
QMAKE_LFLAGS += -fsanitize=address
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
clang*{
|
||||
clang*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -37,9 +38,9 @@ clang*{
|
|||
QMAKE_CXXFLAGS -= \
|
||||
-Wmissing-prototypes \
|
||||
-Wundefined-reinterpret-cast
|
||||
}
|
||||
}
|
||||
|
||||
*-icc-*{
|
||||
*-icc-*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
||||
|
@ -48,4 +49,21 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
} else { # Windows
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
|
||||
win32-msvc*{
|
||||
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
#QMAKE_CXXFLAGS += -WX
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -65,17 +65,9 @@ unix:!macx{
|
|||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||
$$enable_ccache()
|
||||
|
||||
CONFIG(debug, debug|release){
|
||||
# Debug mode
|
||||
unix {
|
||||
include(warnings.pri)
|
||||
} else {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
}
|
||||
}
|
||||
include(warnings.pri)
|
||||
|
||||
}else{
|
||||
CONFIG(release, debug|release){
|
||||
# Release mode
|
||||
!win32-msvc*:CONFIG += silent
|
||||
|
||||
|
@ -83,10 +75,6 @@ CONFIG(debug, debug|release){
|
|||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||
}
|
||||
|
||||
checkWarnings{
|
||||
unix:include(warnings.pri)
|
||||
}
|
||||
|
||||
noStripDebugSymbols {
|
||||
# do nothing
|
||||
} else {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#Turn on compilers warnings.
|
||||
*-g++{
|
||||
unix {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -18,9 +19,9 @@
|
|||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||
QMAKE_LFLAGS += -fsanitize=address
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
clang*{
|
||||
clang*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -29,9 +30,9 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
*-icc-*{
|
||||
*-icc-*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
$$ICC_DEBUG_CXXFLAGS
|
||||
|
@ -39,4 +40,21 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
} else { # Windows
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
|
||||
win32-msvc*{
|
||||
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
#QMAKE_CXXFLAGS += -WX
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,17 +40,9 @@ OBJECTS_DIR = obj
|
|||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||
$$enable_ccache()
|
||||
|
||||
CONFIG(debug, debug|release){
|
||||
# Debug mode
|
||||
unix {
|
||||
include(warnings.pri)
|
||||
} else {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
}
|
||||
}
|
||||
include(warnings.pri)
|
||||
|
||||
}else{
|
||||
CONFIG(release, debug|release){
|
||||
# Release mode
|
||||
CONFIG += silent
|
||||
|
||||
|
@ -58,10 +50,6 @@ CONFIG(debug, debug|release){
|
|||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||
}
|
||||
|
||||
checkWarnings{
|
||||
unix:include(warnings.pri)
|
||||
}
|
||||
|
||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||
# do nothing
|
||||
} else {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#Turn on compilers warnings.
|
||||
*-g++{
|
||||
unix {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -18,9 +19,9 @@
|
|||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||
QMAKE_LFLAGS += -fsanitize=address
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
clang*{
|
||||
clang*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -29,9 +30,9 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
*-icc-*{
|
||||
*-icc-*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
$$ICC_DEBUG_CXXFLAGS
|
||||
|
@ -39,4 +40,21 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
} else { # Windows
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
|
||||
win32-msvc*{
|
||||
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
#QMAKE_CXXFLAGS += -WX
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -46,17 +46,9 @@ OBJECTS_DIR = obj
|
|||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||
$$enable_ccache()
|
||||
|
||||
CONFIG(debug, debug|release){
|
||||
# Debug mode
|
||||
unix {
|
||||
include(warnings.pri)
|
||||
} else {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
}
|
||||
}
|
||||
include(warnings.pri)
|
||||
|
||||
}else{
|
||||
CONFIG(release, debug|release){
|
||||
# Release mode
|
||||
!win32-msvc*:CONFIG += silent
|
||||
DEFINES += V_NO_ASSERT
|
||||
|
@ -64,10 +56,6 @@ CONFIG(debug, debug|release){
|
|||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||
}
|
||||
|
||||
checkWarnings{
|
||||
unix:include(warnings.pri)
|
||||
}
|
||||
|
||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||
# do nothing
|
||||
} else {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#Turn on compilers warnings.
|
||||
*-g++{
|
||||
unix {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -18,9 +19,9 @@
|
|||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||
QMAKE_LFLAGS += -fsanitize=address
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
clang*{
|
||||
clang*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -29,9 +30,9 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
*-icc-*{
|
||||
*-icc-*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
$$ICC_DEBUG_CXXFLAGS
|
||||
|
@ -39,4 +40,21 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
} else { # Windows
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
|
||||
win32-msvc*{
|
||||
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
#QMAKE_CXXFLAGS += -WX
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,17 +42,9 @@ OBJECTS_DIR = obj
|
|||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||
$$enable_ccache()
|
||||
|
||||
CONFIG(debug, debug|release){
|
||||
# Debug mode
|
||||
unix {
|
||||
include(warnings.pri)
|
||||
} else {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
}
|
||||
}
|
||||
include(warnings.pri)
|
||||
|
||||
}else{
|
||||
CONFIG(release, debug|release){
|
||||
# Release mode
|
||||
!win32-msvc*:CONFIG += silent
|
||||
|
||||
|
@ -60,10 +52,6 @@ CONFIG(debug, debug|release){
|
|||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||
}
|
||||
|
||||
checkWarnings{
|
||||
unix:include(warnings.pri)
|
||||
}
|
||||
|
||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||
# do nothing
|
||||
} else {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#Turn on compilers warnings.
|
||||
*-g++{
|
||||
unix {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -18,9 +19,9 @@
|
|||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||
QMAKE_LFLAGS += -fsanitize=address
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
clang*{
|
||||
clang*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -29,9 +30,9 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
*-icc-*{
|
||||
*-icc-*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
$$ICC_DEBUG_CXXFLAGS
|
||||
|
@ -39,4 +40,21 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
} else { # Windows
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
|
||||
win32-msvc*{
|
||||
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
#QMAKE_CXXFLAGS += -WX
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,17 +45,9 @@ RCC_DIR = rcc
|
|||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||
$$enable_ccache()
|
||||
|
||||
CONFIG(debug, debug|release){
|
||||
# Debug mode
|
||||
unix {
|
||||
include(warnings.pri)
|
||||
} else {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
}
|
||||
}
|
||||
include(warnings.pri)
|
||||
|
||||
}else{
|
||||
CONFIG(release, debug|release){
|
||||
# Release mode
|
||||
!win32-msvc*:CONFIG += silent
|
||||
DEFINES += V_NO_ASSERT
|
||||
|
@ -63,10 +55,6 @@ CONFIG(debug, debug|release){
|
|||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||
}
|
||||
|
||||
checkWarnings{
|
||||
unix:include(warnings.pri)
|
||||
}
|
||||
|
||||
QMAKE_CXXFLAGS -= -O2 # Disable default optimization level
|
||||
QMAKE_CXXFLAGS += -O3 # For vlayout library enable speed optimizations
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#Turn on compilers warnings.
|
||||
*-g++{
|
||||
unix {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -24,9 +25,9 @@
|
|||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||
QMAKE_LFLAGS += -fsanitize=address
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
clang*{
|
||||
clang*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -42,9 +43,9 @@ clang*{
|
|||
QMAKE_CXXFLAGS -= \
|
||||
-Wundefined-reinterpret-cast \
|
||||
-Wmissing-prototypes # rcc folder
|
||||
}
|
||||
}
|
||||
|
||||
*-icc-*{
|
||||
*-icc-*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
||||
|
@ -53,4 +54,21 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
} else { # Windows
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
|
||||
win32-msvc*{
|
||||
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
#QMAKE_CXXFLAGS += -WX
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,16 +48,10 @@ OBJECTS_DIR = obj
|
|||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||
$$enable_ccache()
|
||||
|
||||
include(warnings.pri)
|
||||
|
||||
CONFIG(debug, debug|release){
|
||||
# Debug mode
|
||||
unix {
|
||||
include(warnings.pri)
|
||||
} else {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
}
|
||||
}
|
||||
|
||||
#Calculate latest tag distance and build revision only in release mode. Change number each time requare
|
||||
#recompilation precompiled headers file.
|
||||
DEFINES += "LATEST_TAG_DISTANCE=0"
|
||||
|
@ -70,10 +64,6 @@ CONFIG(debug, debug|release){
|
|||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||
}
|
||||
|
||||
checkWarnings{
|
||||
unix:include(warnings.pri)
|
||||
}
|
||||
|
||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||
# do nothing
|
||||
} else {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#Turn on compilers warnings.
|
||||
*-g++{
|
||||
unix {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -18,9 +19,9 @@
|
|||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||
QMAKE_LFLAGS += -fsanitize=address
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
clang*{
|
||||
clang*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -34,9 +35,9 @@ clang*{
|
|||
# want them in global list. Compromise decision delete them from local list.
|
||||
QMAKE_CXXFLAGS -= \
|
||||
-Wmissing-prototypes
|
||||
}
|
||||
}
|
||||
|
||||
*-icc-*{
|
||||
*-icc-*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
$$ICC_DEBUG_CXXFLAGS
|
||||
|
@ -44,4 +45,21 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
} else { # Windows
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
|
||||
win32-msvc*{
|
||||
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
#QMAKE_CXXFLAGS += -WX
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,17 +40,9 @@ OBJECTS_DIR = obj
|
|||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||
$$enable_ccache()
|
||||
|
||||
CONFIG(debug, debug|release){
|
||||
# Debug mode
|
||||
unix {
|
||||
include(warnings.pri)
|
||||
} else {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
}
|
||||
}
|
||||
include(warnings.pri)
|
||||
|
||||
}else{
|
||||
CONFIG(release, debug|release){
|
||||
# Release mode
|
||||
!win32-msvc*:CONFIG += silent
|
||||
|
||||
|
@ -58,10 +50,6 @@ CONFIG(debug, debug|release){
|
|||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||
}
|
||||
|
||||
checkWarnings{
|
||||
unix:include(warnings.pri)
|
||||
}
|
||||
|
||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||
# do nothing
|
||||
} else {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#Turn on compilers warnings.
|
||||
*-g++{
|
||||
unix {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -18,9 +19,9 @@
|
|||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||
QMAKE_LFLAGS += -fsanitize=address
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
clang*{
|
||||
clang*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -29,9 +30,9 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
*-icc-*{
|
||||
*-icc-*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
$$ICC_DEBUG_CXXFLAGS
|
||||
|
@ -39,4 +40,21 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
} else { # Windows
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
|
||||
win32-msvc*{
|
||||
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
#QMAKE_CXXFLAGS += -WX
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,17 +43,9 @@ OBJECTS_DIR = obj
|
|||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||
$$enable_ccache()
|
||||
|
||||
CONFIG(debug, debug|release){
|
||||
# Debug mode
|
||||
unix {
|
||||
include(warnings.pri)
|
||||
} else {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
}
|
||||
}
|
||||
include(warnings.pri)
|
||||
|
||||
}else{
|
||||
CONFIG(release, debug|release){
|
||||
# Release mode
|
||||
!win32-msvc*:CONFIG += silent
|
||||
|
||||
|
@ -61,10 +53,6 @@ CONFIG(debug, debug|release){
|
|||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||
}
|
||||
|
||||
checkWarnings{
|
||||
unix:include(warnings.pri)
|
||||
}
|
||||
|
||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||
# do nothing
|
||||
} else {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#Turn on compilers warnings.
|
||||
*-g++{
|
||||
unix {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -18,9 +19,9 @@
|
|||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||
QMAKE_LFLAGS += -fsanitize=address
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
clang*{
|
||||
clang*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -29,9 +30,9 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
*-icc-*{
|
||||
*-icc-*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
$$ICC_DEBUG_CXXFLAGS
|
||||
|
@ -39,4 +40,21 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
} else { # Windows
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
|
||||
win32-msvc*{
|
||||
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
#QMAKE_CXXFLAGS += -WX
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -63,17 +63,9 @@ unix:!macx{
|
|||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||
$$enable_ccache()
|
||||
|
||||
CONFIG(debug, debug|release){
|
||||
# Debug mode
|
||||
unix {
|
||||
include(warnings.pri)
|
||||
} else {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
}
|
||||
}
|
||||
include(warnings.pri)
|
||||
|
||||
}else{
|
||||
CONFIG(release, debug|release){
|
||||
# Release mode
|
||||
!win32-msvc*:CONFIG += silent
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#Turn on compilers warnings.
|
||||
*-g++{
|
||||
unix {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += \
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
|
@ -23,9 +24,9 @@
|
|||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||
QMAKE_LFLAGS += -fsanitize=address
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
clang*{
|
||||
clang*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -39,9 +40,9 @@ clang*{
|
|||
# want them in global list. Compromise decision delete them from local list.
|
||||
QMAKE_CXXFLAGS -= \
|
||||
-Wundefined-reinterpret-cast
|
||||
}
|
||||
}
|
||||
|
||||
*-icc-*{
|
||||
*-icc-*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
$$ICC_DEBUG_CXXFLAGS
|
||||
|
@ -49,4 +50,21 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
} else { # Windows
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
|
||||
win32-msvc*{
|
||||
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
#QMAKE_CXXFLAGS += -WX
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,17 +50,9 @@ $$enable_ccache()
|
|||
|
||||
INCLUDEPATH += $$PWD/../vpatterndb
|
||||
|
||||
CONFIG(debug, debug|release){
|
||||
# Debug mode
|
||||
unix {
|
||||
include(warnings.pri)
|
||||
} else {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
}
|
||||
}
|
||||
include(warnings.pri)
|
||||
|
||||
}else{
|
||||
CONFIG(release, debug|release){
|
||||
# Release mode
|
||||
!win32-msvc*:CONFIG += silent
|
||||
DEFINES += V_NO_ASSERT
|
||||
|
@ -68,10 +60,6 @@ CONFIG(debug, debug|release){
|
|||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||
}
|
||||
|
||||
checkWarnings{
|
||||
unix:include(warnings.pri)
|
||||
}
|
||||
|
||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||
# do nothing
|
||||
} else {
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
#Turn on compilers warnings.
|
||||
*-g++{
|
||||
unix {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
# -isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
||||
# -isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
||||
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
|
@ -20,9 +21,9 @@
|
|||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||
QMAKE_LFLAGS += -fsanitize=address
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
clang*{
|
||||
clang*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -36,9 +37,9 @@ clang*{
|
|||
# want them in global list. Compromise decision delete them from local list.
|
||||
QMAKE_CXXFLAGS -= \
|
||||
-Wundefined-reinterpret-cast
|
||||
}
|
||||
}
|
||||
|
||||
*-icc-*{
|
||||
*-icc-*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -47,4 +48,21 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
} else { # Windows
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
|
||||
win32-msvc*{
|
||||
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
#QMAKE_CXXFLAGS += -WX
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,17 +42,9 @@ OBJECTS_DIR = obj
|
|||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||
$$enable_ccache()
|
||||
|
||||
CONFIG(debug, debug|release){
|
||||
# Debug mode
|
||||
unix {
|
||||
include(warnings.pri)
|
||||
} else {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
}
|
||||
}
|
||||
include(warnings.pri)
|
||||
|
||||
}else{
|
||||
CONFIG(release, debug|release){
|
||||
# Release mode
|
||||
!win32-msvc*:CONFIG += silent
|
||||
|
||||
|
@ -60,10 +52,6 @@ CONFIG(debug, debug|release){
|
|||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||
}
|
||||
|
||||
checkWarnings{
|
||||
unix:include(warnings.pri)
|
||||
}
|
||||
|
||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||
# do nothing
|
||||
} else {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#Turn on compilers warnings.
|
||||
*-g++{
|
||||
unix {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -18,9 +19,9 @@
|
|||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||
QMAKE_LFLAGS += -fsanitize=address
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
clang*{
|
||||
clang*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -34,9 +35,9 @@ clang*{
|
|||
# want them in global list. Compromise decision delete them from local list.
|
||||
QMAKE_CXXFLAGS -= \
|
||||
-Wundefined-reinterpret-cast
|
||||
}
|
||||
}
|
||||
|
||||
*-icc-*{
|
||||
*-icc-*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
$$ICC_DEBUG_CXXFLAGS
|
||||
|
@ -44,4 +45,21 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
} else { # Windows
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
|
||||
win32-msvc*{
|
||||
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
#QMAKE_CXXFLAGS += -WX
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,25 +49,13 @@ win32-msvc*:SOURCES += stable.cpp
|
|||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||
$$enable_ccache()
|
||||
|
||||
CONFIG(debug, debug|release){
|
||||
# Debug mode
|
||||
unix {
|
||||
include(warnings.pri)
|
||||
} else {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
}
|
||||
}
|
||||
include(warnings.pri)
|
||||
|
||||
}else{
|
||||
CONFIG(release, debug|release){
|
||||
# Release mode
|
||||
!win32-msvc*:CONFIG += silent
|
||||
DEFINES += QT_NO_DEBUG_OUTPUT
|
||||
|
||||
checkWarnings{
|
||||
unix:include(warnings.pri)
|
||||
}
|
||||
|
||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||
# do nothing
|
||||
} else {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#Turn on compilers warnings.
|
||||
*-g++{
|
||||
unix {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += \
|
||||
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
|
@ -16,9 +17,9 @@
|
|||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||
QMAKE_LFLAGS += -fsanitize=address
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
clang*{
|
||||
clang*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
|
@ -30,13 +31,30 @@ clang*{
|
|||
# want them in global list. Compromise decision delete them from local list.
|
||||
QMAKE_CXXFLAGS -= \
|
||||
-Wmissing-prototypes
|
||||
}
|
||||
}
|
||||
|
||||
*-icc-*{
|
||||
*-icc-*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
$$ICC_DEBUG_CXXFLAGS
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
} else { # Windows
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
|
||||
win32-msvc*{
|
||||
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
#QMAKE_CXXFLAGS += -WX
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -76,16 +76,9 @@ HEADERS += \
|
|||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||
$$enable_ccache()
|
||||
|
||||
CONFIG(debug, debug|release){
|
||||
# Debug mode
|
||||
unix {
|
||||
include(warnings.pri)
|
||||
} else {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
}
|
||||
}
|
||||
}else{
|
||||
include(warnings.pri)
|
||||
|
||||
CONFIG(release, debug|release){
|
||||
# Release mode
|
||||
!win32-msvc*:CONFIG += silent
|
||||
DEFINES += V_NO_ASSERT
|
||||
|
@ -93,10 +86,6 @@ CONFIG(debug, debug|release){
|
|||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||
}
|
||||
|
||||
checkWarnings{
|
||||
unix:include(warnings.pri)
|
||||
}
|
||||
|
||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||
# do nothing
|
||||
} else {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#Turn on compilers warnings.
|
||||
*-g++{
|
||||
unix {
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||
|
@ -20,9 +21,9 @@
|
|||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||
QMAKE_LFLAGS += -fsanitize=address
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
clang*{
|
||||
clang*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
# Key -isystem disable checking errors in system headers.
|
||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||
|
@ -34,9 +35,9 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
*-icc-*{
|
||||
*-icc-*{
|
||||
QMAKE_CXXFLAGS += \
|
||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||
|
@ -46,4 +47,21 @@ clang*{
|
|||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
} else { # Windows
|
||||
*-g++{
|
||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
QMAKE_CXXFLAGS += -Werror
|
||||
}
|
||||
}
|
||||
|
||||
win32-msvc*{
|
||||
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||
|
||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||
#QMAKE_CXXFLAGS += -WX
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user