mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0032372: Configuration, qmake - define -Wall -Wextra flags for consistency with CMake options
This commit is contained in:
parent
8d52a74d03
commit
44a5aa517b
@ -2536,6 +2536,7 @@ proc osutils:cbp { theCmpl theOutDir theProjName thePlatform theSrcFiles theLibs
|
|||||||
lappend aCmplFlags "-DOCC_CONVERT_SIGNALS"
|
lappend aCmplFlags "-DOCC_CONVERT_SIGNALS"
|
||||||
}
|
}
|
||||||
lappend aCmplFlags "-Wall"
|
lappend aCmplFlags "-Wall"
|
||||||
|
lappend aCmplFlags "-Wextra"
|
||||||
lappend aCmplFlags "-fexceptions"
|
lappend aCmplFlags "-fexceptions"
|
||||||
}
|
}
|
||||||
lappend aCmplFlagsRelease "-DNDEBUG"
|
lappend aCmplFlagsRelease "-DNDEBUG"
|
||||||
|
@ -13,8 +13,8 @@ OccGitRoot = $$_PRO_FILE_PWD_/../../../..
|
|||||||
|
|
||||||
# Define compilation flags
|
# Define compilation flags
|
||||||
CONFIG += warn_on
|
CONFIG += warn_on
|
||||||
QMAKE_CFLAGS_WARN_ON = -Wall
|
QMAKE_CFLAGS_WARN_ON = -Wall -Wextra
|
||||||
QMAKE_CXXFLAGS_WARN_ON = -Wall
|
QMAKE_CXXFLAGS_WARN_ON = -Wall -Wextra
|
||||||
win32 {
|
win32 {
|
||||||
QMAKE_CFLAGS_WARN_ON = -W4
|
QMAKE_CFLAGS_WARN_ON = -W4
|
||||||
QMAKE_CXXFLAGS_WARN_ON = -W4
|
QMAKE_CXXFLAGS_WARN_ON = -W4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user