Browse Source

Remove '-Wmissing-prototypes' from extra warnings list

- we still have '-Wmissing-declarations', which allows
   void func() instead of void func(void).
personal/stbuehler/wip
Stefan Bühler 14 years ago
parent
commit
5feea39ae6
  1. 4
      src/CMakeLists.txt
  2. 4
      wscript

4
src/CMakeLists.txt

@ -335,8 +335,8 @@ ADD_EXECUTABLE(lighttpd
SET(L_INSTALL_TARGETS ${L_INSTALL_TARGETS} lighttpd)
IF(BUILD_EXTRA_WARNINGS)
SET(WARN_FLAGS "-g -O2 -g2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wno-pointer-sign -Wcast-align -Winline -Wsign-compare -Wnested-externs -Wpointer-arith -Wl,--as-needed")
# -Werror -Wbad-function-cast
SET(WARN_FLAGS "-g -O2 -g2 -Wall -Wmissing-declarations -Wdeclaration-after-statement -Wno-pointer-sign -Wcast-align -Winline -Wsign-compare -Wnested-externs -Wpointer-arith -Wl,--as-needed")
# -Werror -Wbad-function-cast -Wmissing-prototypes
ELSE(BUILD_EXTRA_WARNINGS)
SET(WARN_FLAGS "")
ENDIF(BUILD_EXTRA_WARNINGS)

4
wscript

@ -54,9 +54,9 @@ def configure(conf):
if opts.extra_warnings:
conf.env['CCFLAGS'] += [
'-g', '-g2', '-Wall', '-Wmissing-prototypes', '-Wmissing-declarations',
'-g', '-g2', '-Wall', '-Wmissing-declarations',
'-Wdeclaration-after-statement', '-Wno-pointer-sign', '-Wcast-align', '-Winline', '-Wsign-compare',
'-Wnested-externs', '-Wpointer-arith'#, '-Werror', '-Wbad-function-cast'
'-Wnested-externs', '-Wpointer-arith'#, '-Werror', '-Wbad-function-cast', '-Wmissing-prototypes'
]
conf.env['LDFLAGS'] += [
'-g', '-g2', '-Wall', '-Wmissing-prototypes', '-Wmissing-declarations',

Loading…
Cancel
Save