Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8ba288d

Browse files
committed
Suppress Coverity complaints in readfuncs.c.
Coverity is complaining that the value returned by pg_strtok inREAD_LOCATION_FIELD and READ_BITMAPSET_FIELD macros is not used. In commit39bfc94, we did this to the other macrosto placate compilers that complained when the variable was completelyunused, this extends that to the last remaining macros.
1 parenta687ec7 commit8ba288d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/backend/nodes/readfuncs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
#defineREAD_LOCATION_FIELD(fldname) \
108108
token = pg_strtok(&length);/* skip :fldname */ \
109109
token=pg_strtok(&length);/* get field value */ \
110+
(void)token;/* in case not used elsewhere */ \
110111
local_node->fldname=-1/* set field to "unknown" */
111112

112113
/* Read a Node field */
@@ -118,6 +119,7 @@
118119
/* Read a bitmapset field */
119120
#defineREAD_BITMAPSET_FIELD(fldname) \
120121
token = pg_strtok(&length);/* skip :fldname */ \
122+
(void)token;/* in case not used elsewhere */ \
121123
local_node->fldname=_readBitmapset()
122124

123125
/* Routine exit */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp