Browse Source

Re-add -Werror

Accidentally lost this in the autoconf refactor.
changes/91/636791/1
Monty Taylor 3 months ago
parent
commit
80d56bccb3
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      m4/opendev_warnings.m4

+ 2
- 2
m4/opendev_warnings.m4 View File

@@ -107,8 +107,8 @@ foo(0);
107 107
       AS_IF([test "$ac_cv_safe_to_use_wconversion_" = "yes"],
108 108
             [W_CONVERSION="-Wconversion"])
109 109
 
110
-      CC_WARNINGS="${BASE_WARNINGS} -Wattributes -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wcast-align ${CC_WARNINGS_FULL} ${W_CONVERSION}"
111
-      CXX_WARNINGS="${BASE_WARNINGS} -Wattributes -Woverloaded-virtual -Wnon-virtual-dtor -Wctor-dtor-privacy ${CXX_WARNINGS_FULL} ${W_CONVERSION}"
110
+      CC_WARNINGS="${BASE_WARNINGS} -Werror -Wattributes -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wcast-align ${CC_WARNINGS_FULL} ${W_CONVERSION}"
111
+      CXX_WARNINGS="${BASE_WARNINGS} -Werror -Wattributes -Woverloaded-virtual -Wnon-virtual-dtor -Wctor-dtor-privacy ${CXX_WARNINGS_FULL} ${W_CONVERSION}"
112 112
 
113 113
       AC_CACHE_CHECK([whether it is safe to use -Wframe-larger-than],[ac_cv_safe_to_use_Wframe_larger_than_],[
114 114
         AC_LANG_PUSH(C++)

Loading…
Cancel
Save