summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2019-02-09 21:48:47 +0000
committerMonty Taylor <mordred@inaugust.com>2019-02-09 21:48:47 +0000
commit5302413002608d902d55a9138767dd6d59dda607 (patch)
tree28c18ce9eb307854d0206a08a28894610dec90b1
parentd58179dba76b9ac50755fbfa6dffd5c5f54cba85 (diff)
Get rid of -Wmissing-declaration
The extra line just looks weird.
-rw-r--r--m4/pandora_warnings.m419
-rw-r--r--zuul-preview/main.cc2
2 files changed, 0 insertions, 21 deletions
diff --git a/m4/pandora_warnings.m4 b/m4/pandora_warnings.m4
index 38a4281..15c0e33 100644
--- a/m4/pandora_warnings.m4
+++ b/m4/pandora_warnings.m4
@@ -240,25 +240,6 @@ uint16_t x= htons(80);
240 CC_WARNINGS="${BASE_WARNINGS} -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wcast-align ${CC_WARNINGS_FULL}" 240 CC_WARNINGS="${BASE_WARNINGS} -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wcast-align ${CC_WARNINGS_FULL}"
241 CXX_WARNINGS="${BASE_WARNINGS} -Woverloaded-virtual -Wnon-virtual-dtor -Wctor-dtor-privacy ${CXX_WARNINGS_FULL}" 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 AC_CACHE_CHECK([whether it is safe to use -Wframe-larger-than], 243 AC_CACHE_CHECK([whether it is safe to use -Wframe-larger-than],
263 [ac_cv_safe_to_use_Wframe_larger_than_], 244 [ac_cv_safe_to_use_Wframe_larger_than_],
264 [AC_LANG_PUSH(C++) 245 [AC_LANG_PUSH(C++)
diff --git a/zuul-preview/main.cc b/zuul-preview/main.cc
index 6d24165..908da95 100644
--- a/zuul-preview/main.cc
+++ b/zuul-preview/main.cc
@@ -23,8 +23,6 @@
23 23
24using namespace std; 24using namespace std;
25 25
26vector<string> split(string in);
27
28vector<string> split(string in) 26vector<string> split(string in)
29{ 27{
30 istringstream stream(in); 28 istringstream stream(in);