forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit39bfc94
committed
Suppress compiler warnings in readfuncs.c.
Commit7357558 introduced "(void) token;"into the READ_TEMP_LOCALS() macro, to suppress complaints from gcc 4.6when the value of token was not used anywhere in a particular node-readfunction. However, this just moved the warning around: inspection ofbuildfarm results shows that some compilers are now complaining that tokenis being read before it's set. Revert the READ_TEMP_LOCALS() macro changeand instead put "(void) token;" into READ_NODE_FIELD(), which is theprincipal culprit for cases where the warning might occur. In principle wemight need the same in READ_BITMAPSET_FIELD() and/or READ_LOCATION_FIELD(),but it seems unlikely that a node would consist only of such fields, soI'll leave them alone for now.1 parentfa188b5 commit39bfc94
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| |||
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
0 commit comments
Comments
(0)