/[svn]/ircd-hybrid/branches/8.2.x/m4/ax_arg_enable_warnings.m4
ViewVC logotype

Contents of /ircd-hybrid/branches/8.2.x/m4/ax_arg_enable_warnings.m4

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9989 - (show annotations)
Wed Jun 16 10:09:33 2021 UTC (14 months ago) by michael
File size: 1516 byte(s)
- ax_arg_enable_warnings.m4: move AX_APPEND_COMPILE_FLAGS([-Werror=unknown-warning-option]) to configure.ac to have this flag set in an earlier stage

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-function-type])
9 AX_APPEND_COMPILE_FLAGS([-Wcast-qual])
10 AX_APPEND_COMPILE_FLAGS([-Wclobbered])
11 AX_APPEND_COMPILE_FLAGS([-Wduplicated-cond])
12 AX_APPEND_COMPILE_FLAGS([-Wempty-body])
13 AX_APPEND_COMPILE_FLAGS([-Wignored-qualifiers])
14 AX_APPEND_COMPILE_FLAGS([-Wlogical-op])
15 AX_APPEND_COMPILE_FLAGS([-Wmissing-declarations])
16 AX_APPEND_COMPILE_FLAGS([-Wmissing-field-initializers])
17 AX_APPEND_COMPILE_FLAGS([-Wmissing-include-dirs])
18 AX_APPEND_COMPILE_FLAGS([-Wmissing-parameter-type])
19 AX_APPEND_COMPILE_FLAGS([-Wmissing-prototypes])
20 AX_APPEND_COMPILE_FLAGS([-Wnested-externs])
21 AX_APPEND_COMPILE_FLAGS([-Wold-style-declaration])
22 AX_APPEND_COMPILE_FLAGS([-Woverride-init])
23 AX_APPEND_COMPILE_FLAGS([-Wpointer-arith])
24 AX_APPEND_COMPILE_FLAGS([-Wredundant-decls])
25 AX_APPEND_COMPILE_FLAGS([-Wshadow])
26 AX_APPEND_COMPILE_FLAGS([-Wshift-negative-value])
27 AX_APPEND_COMPILE_FLAGS([-Wsign-compare])
28 AX_APPEND_COMPILE_FLAGS([-Wtype-limits])
29 AX_APPEND_COMPILE_FLAGS([-Wundef])
30 AX_APPEND_COMPILE_FLAGS([-Wuninitialized])
31 AX_APPEND_COMPILE_FLAGS([-Wwrite-strings])
32 ])
33 ])

Properties

Name Value
svn:eol-style native

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