1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
--- a/m4/ax_harden_compiler_flags.m4
+++ b/m4/ax_harden_compiler_flags.m4
@@ -71,16 +71,16 @@
AC_REQUIRE([AX_VCS_CHECKOUT])
AC_REQUIRE([AX_DEBUG])
- dnl If we are inside of VCS we append -Werror, otherwise we just use it to test other flags
+ dnl If we are inside of VCS we append , otherwise we just use it to test other flags
AX_HARDEN_LIB=
ax_append_compile_link_flags_extra=
AS_IF([test "x$ac_cv_vcs_checkout" = "xyes"],[
- AX_CHECK_LINK_FLAG([-Werror],[
- AX_HARDEN_LIB="-Werror $AX_HARDEN_LIB"
+ AX_CHECK_LINK_FLAG([],[
+ AX_HARDEN_LIB=" $AX_HARDEN_LIB"
])
],[
- AX_CHECK_LINK_FLAG([-Werror],[
- ax_append_compile_link_flags_extra='-Werror'
+ AX_CHECK_LINK_FLAG([],[
+ ax_append_compile_link_flags_extra=''
])
])
@@ -104,10 +104,10 @@
ac_cv_warnings_as_errors=no
ax_append_compile_cflags_extra=
AS_IF([test "$ac_cv_vcs_checkout" = "yes"],[
- AX_APPEND_COMPILE_FLAGS([-Werror])
+ AX_APPEND_COMPILE_FLAGS([])
ac_cv_warnings_as_errors=yes
],[
- AX_APPEND_COMPILE_FLAGS([-Werror],[ax_append_compile_cflags_extra])
+ AX_APPEND_COMPILE_FLAGS([],[ax_append_compile_cflags_extra])
])
AS_IF([test "$ax_enable_debug" = "yes"], [
@@ -167,9 +167,9 @@
ax_append_compile_cxxflags_extra=
AS_IF([test "$ac_cv_warnings_as_errors" = "yes"],[
- AX_APPEND_COMPILE_FLAGS([-Werror])
+ AX_APPEND_COMPILE_FLAGS([])
],[
- AX_APPEND_COMPILE_FLAGS([-Werror],[ax_append_compile_cxxflags_extra])
+ AX_APPEND_COMPILE_FLAGS([],[ax_append_compile_cxxflags_extra])
])
AS_IF([test "$ax_enable_debug" = "yes" ], [
@@ -181,7 +181,7 @@
])
AS_IF([test "$ac_cv_vcs_checkout" = "yes" ], [
- AX_APPEND_COMPILE_FLAGS([-Werror],,[$ax_append_compile_cxxflags_extra])
+ AX_APPEND_COMPILE_FLAGS([],,[$ax_append_compile_cxxflags_extra])
],[
AX_APPEND_COMPILE_FLAGS([-Wno-pragmas],,[$ax_append_compile_cxxflags_extra])
])
|