summaryrefslogtreecommitdiff
path: root/src/backend/nodes
diff options
context:
space:
mode:
authorHeikki Linnakangas2014-01-16 09:55:08 +0000
committerHeikki Linnakangas2014-01-16 10:00:19 +0000
commit8ba288da5dce7bd890dd968ddb9664931099b8c5 (patch)
tree9cd1bb62c8659db51d7d7f415ae794d41c63b1f1 /src/backend/nodes
parenta687ec7d5bf11fd16a68ffba6185aabe9100f98f (diff)
Suppress Coverity complaints in readfuncs.c.
Coverity is complaining that the value returned by pg_strtok in READ_LOCATION_FIELD and READ_BITMAPSET_FIELD macros is not used. In commit 39bfc94c86f1990e9db8ea3da0e82995cc1b76db, we did this to the other macros to placate compilers that complained when the variable was completely unused, this extends that to the last remaining macros.
Diffstat (limited to 'src/backend/nodes')
-rw-r--r--src/backend/nodes/readfuncs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/nodes/readfuncs.c b/src/backend/nodes/readfuncs.c
index 8a7a662896..c22acd5d27 100644
--- a/src/backend/nodes/readfuncs.c
+++ b/src/backend/nodes/readfuncs.c
@@ -107,6 +107,7 @@
#define READ_LOCATION_FIELD(fldname) \
token = pg_strtok(&length); /* skip :fldname */ \
token = pg_strtok(&length); /* get field value */ \
+ (void) token; /* in case not used elsewhere */ \
local_node->fldname = -1 /* set field to "unknown" */
/* Read a Node field */
@@ -118,6 +119,7 @@
/* Read a bitmapset field */
#define READ_BITMAPSET_FIELD(fldname) \
token = pg_strtok(&length); /* skip :fldname */ \
+ (void) token; /* in case not used elsewhere */ \
local_node->fldname = _readBitmapset()
/* Routine exit */