Browse Source

Merge pull request #543 from svaarala/add-unreachable-warning

Add -Wunreachable-code to gcc default compile
pull/539/head
Sami Vaarala 9 years ago
parent
commit
869e0c95b0
  1. 1
      Makefile

1
Makefile

@ -265,6 +265,7 @@ CCOPTS_SHARED += -pedantic -ansi -std=c99 -fstrict-aliasing
# -Wextra is very picky but catches e.g. signed/unsigned comparisons
CCOPTS_SHARED += -Wall -Wextra -Wunused-result
CCOPTS_SHARED += -Wcast-qual
CCOPTS_SHARED += -Wunreachable-code # on some compilers unreachable code is an error
# -Wfloat-equal is too picky, there's no apparent way to compare floats
# (even when you know it's safe) without triggering warnings
CCOPTS_SHARED += -I./dist/src -I./dist/examples/alloc-logging -I./dist/examples/alloc-torture -I./dist/examples/alloc-hybrid -I./dist/examples/debug-trans-socket

Loading…
Cancel
Save