diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-22 13:49:43 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-22 13:49:43 +0000 |
commit | 972ebb3d2e8655454035f728e422158393c7330e (patch) | |
tree | 8376886d19205bc98aa080934adb39a59d797a86 /missing/vsnprintf.c | |
parent | 58a66bb0122c285dcb9874530c028128883b7d1d (diff) | |
download | ruby-972ebb3d2e8655454035f728e422158393c7330e.tar.gz ruby-972ebb3d2e8655454035f728e422158393c7330e.tar.xz ruby-972ebb3d2e8655454035f728e422158393c7330e.zip |
* enumerator.c (enumerator_each, enumerator_with_index): suppress
warnings.
* pack.c (pack_unpack): ditto.
* process.c (rb_syswait): ditto.
* re.c (rb_reg_prepare_enc, rb_reg_prepare_re,
rb_reg_adjust_startpos): ditto.
* regparse.c (onig_name_to_group_numbers): ditto.
* missing/vsnprintf.c (BSD_vfprintf): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing/vsnprintf.c')
-rw-r--r-- | missing/vsnprintf.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/missing/vsnprintf.c b/missing/vsnprintf.c index 3c8b76686..352005bd3 100644 --- a/missing/vsnprintf.c +++ b/missing/vsnprintf.c @@ -550,7 +550,7 @@ BSD_vfprintf(FILE *fp, const char *fmt0, va_list ap) int fieldsz; /* field size expanded by sign, etc */ int realsz; /* field size expanded by dprec */ int size; /* size of converted field or string */ - char *xdigs; /* digits for [xX] conversion */ + char *xdigs = 0; /* digits for [xX] conversion */ #define NIOV 8 struct __suio uio; /* output information: summary */ struct __siov iov[NIOV];/* ... and individual io vectors */ @@ -908,10 +908,11 @@ hex: /* leading 0x/X only if non-zero */ if (flags & ALT && #ifdef _HAVE_SANE_QUAD_ - (flags & QUADINT ? uqval != 0 : ulval != 0)) + (flags & QUADINT ? uqval != 0 : ulval != 0) #else /* _HAVE_SANE_QUAD_ */ - ulval != 0) + ulval != 0 #endif /* _HAVE_SANE_QUAD_ */ + ) flags |= HEXPREFIX; /* unsigned conversions */ @@ -935,10 +936,10 @@ number: if ((dprec = prec) >= 0) if (uqval != 0 || prec != 0) cp = BSD__uqtoa(uqval, cp, base, flags & ALT, xdigs); - } else { + } else #else /* _HAVE_SANE_QUAD_ */ - { #endif /* _HAVE_SANE_QUAD_ */ + { if (ulval != 0 || prec != 0) cp = BSD__ultoa(ulval, cp, base, flags & ALT, xdigs); |