summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-30 03:18:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-30 03:18:07 +0000
commit279aaaf9a43fb39a2ce407724b548e02bc4c887c (patch)
treefa7fb5a4d6f60387ee62b7b238a1e805c4f6beb8 /ext
parent0dea3e1a43f864e48acb3135c0e3885ff6f5a372 (diff)
printf.c: suppress warnings
* ext/-test-/printf/printf.c (printf_test_call): suppress maybe-uninitialized warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/-test-/printf/printf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/-test-/printf/printf.c b/ext/-test-/printf/printf.c
index 1ebe80411bd..336f918986b 100644
--- a/ext/-test-/printf/printf.c
+++ b/ext/-test-/printf/printf.c
@@ -44,8 +44,8 @@ printf_test_call(int argc, VALUE *argv, VALUE self)
{
VALUE opt, type, num, result;
char format[sizeof(int) * 6 + 8], *p = format, cnv;
- int n;
- const char *s;
+ int n = 0;
+ const char *s = 0;
rb_scan_args(argc, argv, "2:", &type, &num, &opt);
Check_Type(type, T_STRING);