diff options
author | Peter Wu <peter@lekensteyn.nl> | 2015-10-04 16:27:02 +0200 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-10-05 07:57:14 +0000 |
commit | 6d7b29592aa9cac3f10823ea8f33b18893707e83 (patch) | |
tree | ed599a42e0ead9d89bf8942e0d32c976272d7036 /configure.ac | |
parent | 5b1d142f52ab8f89f558ab18788637d3eefdd2bb (diff) |
Allow use of variadic macros
Remove variadic macros restriction (c99, c++11 feature) from
README.developer. GCC, Clang, MSVC 2005 all support it.
Enable -Wno-variadic-macros in configure.ac and CMakeLists.txt when
-Wpedantic is enabled (which would enable -Wvariadic-macros).
For all files matching 'define\s*\w+[0-9]\(', replace "FOO[0-9]" by
"FOO" and adjust the macro definition accordingly. The nbap dissector
was regenerated after adjusting its template and .cnf file. The
generated code is the same since all files disabled the debug macros.
Discussed at:
https://www.wireshark.org/lists/wireshark-dev/201209/msg00142.html
https://www.wireshark.org/lists/wireshark-dev/201510/msg00012.html
Change-Id: I3b2e22487db817cbbaac774a592669a4f44314b2
Reviewed-on: https://code.wireshark.org/review/10781
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 81394ee505..92dc1329d8 100644 --- a/configure.ac +++ b/configure.ac @@ -871,6 +871,7 @@ AC_ARG_ENABLE(extra-compiler-warnings, # The following are for C and C++ # AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wpedantic) + AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wno-variadic-macros) # # Various code blocks this one. # |