/[svn]/ircd-hybrid/trunk/m4/ax_arg_enable_warnings.m4
ViewVC logotype

Contents of /ircd-hybrid/trunk/m4/ax_arg_enable_warnings.m4

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6134 - (show annotations)
Thu Jun 11 19:33:18 2015 UTC (7 years, 5 months ago) by michael
File size: 1361 byte(s)
- ax_arg_enable_warnings.m4: use AS_IF

1 AC_DEFUN([AX_ARG_ENABLE_WARNINGS],[
2 AC_ARG_ENABLE([warnings],[AS_HELP_STRING([--enable-warnings],[Enable compiler warnings.])],[warnings="$enableval"],[warnings="no"])
3
4 AS_IF([test "$warnings" = "yes"], [
5 AX_APPEND_COMPILE_FLAGS([-Wall])
6 AX_APPEND_COMPILE_FLAGS([-Wbad-function-cast])
7 AX_APPEND_COMPILE_FLAGS([-Wcast-align])
8 AX_APPEND_COMPILE_FLAGS([-Wcast-qual])
9 AX_APPEND_COMPILE_FLAGS([-Wclobbered])
10 AX_APPEND_COMPILE_FLAGS([-Wempty-body])
11 AX_APPEND_COMPILE_FLAGS([-Wignored-qualifiers])
12 AX_APPEND_COMPILE_FLAGS([-Wlogical-op])
13 AX_APPEND_COMPILE_FLAGS([-Wmissing-declarations])
14 AX_APPEND_COMPILE_FLAGS([-Wmissing-field-initializers])
15 AX_APPEND_COMPILE_FLAGS([-Wmissing-include-dirs])
16 AX_APPEND_COMPILE_FLAGS([-Wmissing-parameter-type])
17 AX_APPEND_COMPILE_FLAGS([-Wmissing-prototypes])
18 AX_APPEND_COMPILE_FLAGS([-Wnested-externs])
19 AX_APPEND_COMPILE_FLAGS([-Wold-style-declaration])
20 AX_APPEND_COMPILE_FLAGS([-Woverride-init])
21 AX_APPEND_COMPILE_FLAGS([-Wpointer-arith])
22 AX_APPEND_COMPILE_FLAGS([-Wredundant-decls])
23 AX_APPEND_COMPILE_FLAGS([-Wshadow])
24 AX_APPEND_COMPILE_FLAGS([-Wsign-compare])
25 AX_APPEND_COMPILE_FLAGS([-Wtype-limits])
26 AX_APPEND_COMPILE_FLAGS([-Wundef])
27 AX_APPEND_COMPILE_FLAGS([-Wuninitialized])
28 AX_APPEND_COMPILE_FLAGS([-Wwrite-strings])
29 ])
30 ])

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28