Skip to content

Commit a714691

Browse files
committed
Makefile: added -Wno-sign-compare. I don't like this warning
1 parent cda9b40 commit a714691

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ else # !COMSPEC
6060
endif # COMSPEC
6161

6262
ifndef CXXFLAGS
63-
CXXFLAGS=-pedantic -Wall -Wextra -Wabi -Wcast-qual -Wconversion -Wfloat-equal -Winline -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Woverloaded-virtual -Wpacked -Wredundant-decls -Wshadow -Wsign-promo $(CPPCHK_GLIBCXX_DEBUG) -g
63+
CXXFLAGS=-pedantic -Wall -Wextra -Wabi -Wcast-qual -Wconversion -Wfloat-equal -Winline -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Woverloaded-virtual -Wpacked -Wredundant-decls -Wshadow -Wsign-promo -Wno-sign-compare $(CPPCHK_GLIBCXX_DEBUG) -g
6464
endif
6565

6666
ifeq ($(HAVE_RULES),yes)

tools/dmake.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ int main(int argc, char **argv)
316316
// "-Wsign-conversion "
317317
"-Wsign-promo "
318318
// "-Wunreachable-code "
319+
"-Wno-sign-compare " // danmar: I don't like this warning, it's very rarelly a bug
319320
"$(CPPCHK_GLIBCXX_DEBUG) "
320321
"-g");
321322
}

0 commit comments

Comments
 (0)