diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2005-04-05 11:37:07 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2005-04-05 11:37:07 +0000 |
commit | 5bebf53162993af19c046b5b711e9e41c6e6f948 (patch) | |
tree | 7cd7ceac0750c5224365e17480bd219efe8b0ab4 /src/util/snprintf.c | |
parent | ae09d348360dbb821fd377fb24ace18dc8b5c263 (diff) |
Fixed gcc compiler warnings about local variables named after global symbols
and potentially uninitialized variables.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4021 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/util/snprintf.c')
-rw-r--r-- | src/util/snprintf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/util/snprintf.c b/src/util/snprintf.c index 9ee9b8fe..e5170038 100644 --- a/src/util/snprintf.c +++ b/src/util/snprintf.c @@ -573,14 +573,14 @@ static LDOUBLE abs_val (LDOUBLE value) return result; } -static LDOUBLE mypow10 (int exp) +static LDOUBLE mypow10 (int exponent) { LDOUBLE result = 1; - while (exp) + while (exponent) { result *= 10; - exp--; + exponent--; } return result; @@ -604,8 +604,8 @@ static int fmtfp (char *buffer, size_t *currlen, size_t maxlen, int signvalue = 0; LDOUBLE ufvalue; LDOUBLE logvalue; - long exponent; - char expsign; + long exponent = 0; + char expsign = 0; char iconvert[20]; char fconvert[20]; char econvert[20]; |