Browse Source

Add -Wsuggest-attribute=noreturn

pull/1788/head
Sami Vaarala 7 years ago
parent
commit
09afd8768d
  1. 1
      Makefile

1
Makefile

@ -130,6 +130,7 @@ CCOPTS_SHARED += -Wmissing-prototypes
# -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 += -Wsign-conversion
CCOPTS_SHARED += -Wsuggest-attribute=noreturn
CCOPTS_SHARED += -fmax-errors=3 # prevent floods of errors if e.g. parenthesis missing
CCOPTS_SHARED += -I./linenoise
CCOPTS_SHARED += -I./examples/cmdline

Loading…
Cancel
Save