Skip to content

Commit

Permalink
gcc: Disabled most warnings
Browse files Browse the repository at this point in the history
There are hundreds of warnings from the old C code, such as
signed/unsigned comparisons and comparisons that are always true
due to value range. These are now disabled as it is unlikely
that all of these will be fixed for the legacy code.

TODO: Enable strict warnings for new C++ code.
  • Loading branch information
skyjake committed Oct 3, 2011
1 parent b35c5b8 commit af42a76
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions doomsday/config.pri
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,9 @@ unix {
# Unix/Mac build options.
DEFINES += UNIX

# We are not interested in unused parameters (there are quite a few).
QMAKE_CFLAGS_WARN_ON += \
-Wno-unused-parameter \
-Wno-unused-variable \
-Wno-missing-field-initializers \
-Wno-missing-braces
# Ease up on the warnings. (The old C code is a bit messy.)
QMAKE_CFLAGS_WARN_ON -= -Wall
QMAKE_CFLAGS_WARN_ON -= -W
}
unix:!macx {
# Generic Unix build options.
Expand Down

0 comments on commit af42a76

Please sign in to comment.