Skip to content

Commit

Permalink
Fix compiler warning.
Browse files Browse the repository at this point in the history
Now that we don't use the old conversion string we can get ride of the
caps variable.
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent 104babb commit 8694896
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/lib/bsnprintf.c
Expand Up @@ -652,7 +652,6 @@ static int32_t fmtfp(char *buffer, int32_t currlen, int32_t maxlen,
int fplace = 0;
int padlen = 0; /* amount to pad */
int zpadlen = 0;
int caps = 0;
int64_t intpart;
int64_t fracpart;
const char *cvt_str;
Expand All @@ -673,11 +672,6 @@ static int32_t fmtfp(char *buffer, int32_t currlen, int32_t maxlen,
else if (flags & DP_F_SPACE)
signvalue = ' ';

#if 0
if (flags & DP_F_UP)
caps = 1; /* Should characters be upper case? */
#endif

#ifndef HAVE_FCVT
intpart = (int64_t)ufvalue;

Expand Down

0 comments on commit 8694896

Please sign in to comment.