Skip to content
Permalink
Browse files

Merge PR #2526: compiler.pri: enable warnings-as-errors by default on…

… Windows.
  • Loading branch information...
mkrautz committed Aug 24, 2016
2 parents fc9dc2e + 7868bea commit 355bf07c4389fc3088468039f939b47b5d1fd85c
Showing with 8 additions and 0 deletions.
  1. +8 −0 compiler.pri
@@ -66,6 +66,14 @@ win32 {
QMAKE_CXXFLAGS_RELEASE *= /analyze
}

# Always enable warnings-as-errors
# if we're inside a Mumble build environment.
# Can be disabled with CONFIG+=no-warnings-as-errors.
MUMBLE_PREFIX=$$(MUMBLE_PREFIX)
!isEmpty(MUMBLE_PREFIX):!CONFIG(no-warnings-as-errors) {
CONFIG += warnings-as-errors
}

CONFIG(warnings-as-errors) {
QMAKE_CFLAGS *= -WX
QMAKE_CXXFLAGS *= -WX

0 comments on commit 355bf07

Please sign in to comment.
You can’t perform that action at this time.