mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
0dea3e1a43
commit
279aaaf9a4
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue