summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-04 22:36:05 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-04 22:36:05 +0000
commitfc1f476b61e2227c2981bd323163b77a6588305a (patch)
treea0d7b5f0af6c1b50b152c8d0ddb525f90c2042da
parent8b8c374c453c76ca04256d252fd5f4c68dd8a845 (diff)
addr2line.c uses c99ism
https://travis-ci.org/ruby/ruby/jobs/450505006 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--addr2line.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/addr2line.c b/addr2line.c
index 2af7e16afb..2670555493 100644
--- a/addr2line.c
+++ b/addr2line.c
@@ -8,6 +8,12 @@
**********************************************************************/
+#if defined(__clang__)
+#pragma clang diagnostic ignored "-Wpedantic"
+#elif defined(__GNUC__)
+#pragma GCC diagnostic ignored "-Wpedantic"
+#endif
+
#include "ruby/config.h"
#include "ruby/defines.h"
#include "ruby/missing.h"