aboutsummaryrefslogtreecommitdiffstats
path: root/sprintf.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-02 03:02:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-02 03:02:22 +0000
commit0b1c87724d1d999e2cc6545592fa5ea947673a71 (patch)
tree7ea49852f2a4905dcc035bd308d35cf7d2ba9a78 /sprintf.c
parentd22596dffd137af3425b2c58ec3a27323ab7a9ad (diff)
downloadruby-0b1c87724d1d999e2cc6545592fa5ea947673a71.tar.gz
suppress warnings when RUBY_USE_SETJMPEX
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sprintf.c')
-rw-r--r--sprintf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sprintf.c b/sprintf.c
index 52771eb52a..4ee7e1d4f0 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -1247,6 +1247,10 @@ fmt_setup(char *buf, size_t size, int c, int flags, int width, int prec)
#endif
#define lower_hexdigits (ruby_hexdigits+0)
#define upper_hexdigits (ruby_hexdigits+16)
+#if defined RUBY_USE_SETJMPEX && RUBY_USE_SETJMPEX
+# undef MAYBE_UNUSED
+# define MAYBE_UNUSED(x) x = 0
+#endif
#include "vsnprintf.c"
static char *