Browse Source

Get rid of -Wmissing-declaration

The extra line just looks weird.
master
Monty Taylor 3 months ago
parent
commit
5302413002
2 changed files with 0 additions and 21 deletions
  1. 0
    19
      m4/pandora_warnings.m4
  2. 0
    2
      zuul-preview/main.cc

+ 0
- 19
m4/pandora_warnings.m4 View File

@@ -240,25 +240,6 @@ uint16_t x= htons(80);
240 240
       CC_WARNINGS="${BASE_WARNINGS} -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wcast-align ${CC_WARNINGS_FULL}"
241 241
       CXX_WARNINGS="${BASE_WARNINGS} -Woverloaded-virtual -Wnon-virtual-dtor -Wctor-dtor-privacy ${CXX_WARNINGS_FULL}"
242 242
 
243
-      AC_CACHE_CHECK([whether it is safe to use -Wmissing-declarations from C++],
244
-        [ac_cv_safe_to_use_Wmissing_declarations_],
245
-        [AC_LANG_PUSH(C++)
246
-         save_CXXFLAGS="$CXXFLAGS"
247
-         CXXFLAGS="-Werror -pedantic -Wmissing-declarations ${AM_CXXFLAGS}"
248
-         AC_COMPILE_IFELSE([
249
-           AC_LANG_PROGRAM(
250
-           [[
251
-#include <stdio.h>
252
-           ]], [[]])
253
-        ],
254
-        [ac_cv_safe_to_use_Wmissing_declarations_=yes],
255
-        [ac_cv_safe_to_use_Wmissing_declarations_=no])
256
-        CXXFLAGS="$save_CXXFLAGS"
257
-        AC_LANG_POP()
258
-      ])
259
-      AS_IF([test "$ac_cv_safe_to_use_Wmissing_declarations_" = "yes"],
260
-            [CXX_WARNINGS="${CXX_WARNINGS} -Wmissing-declarations"])
261
-  
262 243
       AC_CACHE_CHECK([whether it is safe to use -Wframe-larger-than],
263 244
         [ac_cv_safe_to_use_Wframe_larger_than_],
264 245
         [AC_LANG_PUSH(C++)

+ 0
- 2
zuul-preview/main.cc View File

@@ -23,8 +23,6 @@
23 23
 
24 24
 using namespace std;
25 25
 
26
-vector<string> split(string in);
27
-
28 26
 vector<string> split(string in)
29 27
 {
30 28
   istringstream stream(in);

Loading…
Cancel
Save