mirror of
https://github.com/postgres/postgres.git
synced 2025-08-25 20:23:07 +03:00
Avoid compiler warnings due to possibly unused variables
gcc 4.6 complains about these because of the new option -Wunused-but-set-variable which comes in with -Wall, so cast them to void, which avoids the warning.
This commit is contained in:
@@ -224,6 +224,7 @@ nodeTokenType(char *token, int length)
|
||||
|
||||
errno = 0;
|
||||
val = strtol(token, &endptr, 10);
|
||||
(void) val; /* avoid compiler warning if unused */
|
||||
if (endptr != token + length || errno == ERANGE
|
||||
#ifdef HAVE_LONG_INT_64
|
||||
/* if long > 32 bits, check for overflow of int4 */
|
||||
|
Reference in New Issue
Block a user