Merge commit '984e50e74ba71301720652e56232161a994bd0b5'
authorClément Bœsch <u@pkh.me>
Sat, 8 Apr 2017 13:00:25 +0000 (15:00 +0200)
committerClément Bœsch <u@pkh.me>
Sat, 8 Apr 2017 13:00:25 +0000 (15:00 +0200)
* commit '984e50e74ba71301720652e56232161a994bd0b5':
  build: Add -Wpedantic and -Wextra to extra warning flags

Merged-by: Clément Bœsch <u@pkh.me>
1  2 
configure

diff --cc configure
+++ b/configure
@@@ -6122,11 -4833,13 +6122,15 @@@ check_cflags -Wwrite-string
  check_cflags -Wtype-limits
  check_cflags -Wundef
  check_cflags -Wmissing-prototypes
 +check_cflags -Wno-pointer-to-int-cast
  check_cflags -Wstrict-prototypes
- enabled extra_warnings && check_cflags -Winline
- enabled extra_warnings && check_cflags -Wcast-qual
 +check_cflags -Wempty-body
+ if enabled extra_warnings; then
+     check_cflags -Wcast-qual
+     check_cflags -Wextra
+     check_cflags -Wpedantic
+ fi
  
  check_disable_warning(){
      warning_flag=-W${1#-Wno-}