Skip to content

Commit

Permalink
pingviewer: Add more compiling checks
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
  • Loading branch information
patrickelectric committed Feb 21, 2020
1 parent 6d85a15 commit 55e995c
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion pingviewer.pro
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,23 @@ RESOURCES += \

# Warning as error
*-g++ | *-clang {
QMAKE_CXXFLAGS += -Werror
QMAKE_CXXFLAGS += \
-Werror \
-Wall \
-Wextra \
-Wnon-virtual-dtor \
-Wunused \

*-g++ {
QMAKE_CXXFLAGS += \
-fsanitize=leak \
-Wmisleading-indentation \
-Wduplicated-cond \
-Wduplicated-branches \
-Wlogical-op \

}

}
*msvc {
QMAKE_CXXFLAGS += /WX \
Expand Down

0 comments on commit 55e995c

Please sign in to comment.