diff options
author | Andrew Dunstan | 2013-03-22 13:14:16 +0000 |
---|---|---|
committer | Andrew Dunstan | 2013-03-22 13:14:16 +0000 |
commit | e4a05c7512b23c8f48c186e685f2ef186374a20a (patch) | |
tree | 616a572baf47c342147cdaea4fc4ba76a3566928 | |
parent | 13fe298ca06f5390df5edf073cf401f9f0b67458 (diff) |
Silence compiler warnings about unused values.
Per gripe from Kevin Grittner.
-rw-r--r-- | contrib/hstore/hstore_io.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/contrib/hstore/hstore_io.c b/contrib/hstore/hstore_io.c index a9a55d89b8b..088f0058ed0 100644 --- a/contrib/hstore/hstore_io.c +++ b/contrib/hstore/hstore_io.c @@ -1305,11 +1305,13 @@ hstore_to_json_loose(PG_FUNCTION_ARGS) { /* * might be a number. See if we can input it as a numeric - * value + * value. Ignore any actual parsed value. */ char *endptr = "junk"; + long lval; - (void) strtol(src->data, &endptr, 10); + lval = strtol(src->data, &endptr, 10); + (void) lval; if (*endptr == '\0') { /* @@ -1321,7 +1323,10 @@ hstore_to_json_loose(PG_FUNCTION_ARGS) else { /* not an int - try a double */ - (void) strtod(src->data, &endptr); + double dval; + + dval = strtod(src->data, &endptr); + (void) dval; if (*endptr == '\0') is_number = true; } |