/[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 9986 - (show annotations)
Tue Jun 15 17:53:30 2021 UTC (14 months ago) by michael
File size: 1579 byte(s)
- ax_arg_enable_warnings.m4: add -Werror=unknown-warning-option for clang so support for all the other flags can be detected properly

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

Properties

Name Value
svn:eol-style native

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