aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2019-09-13 16:26:55 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2019-09-13 16:26:55 -0300
commita0a40f611e9af81507a48f7fd96833ad57c8e4ae (patch)
tree5b502f3ef7d90baad4ae4b269ed8b9b14d1576c2
parentda47e43dc32e3c5916396f0cbcfa974b371e4875 (diff)
downloadpostgresql-a0a40f611e9af81507a48f7fd96833ad57c8e4ae.tar.gz
postgresql-a0a40f611e9af81507a48f7fd96833ad57c8e4ae.zip
Fix under-parenthesized macro definitions
Lack of parens in the definitions could cause a statement using these macros to have unexpected semantics. In current code no bug is apparent, but best to fix the definitions to avoid problems down the line. Reported-by: Tom Lane Discussion: https://postgr.es/m/19795.1568400476@sss.pgh.pa.us
-rw-r--r--src/include/nodes/parsenodes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h
index c9c72ab94a6..d6b943c898c 100644
--- a/src/include/nodes/parsenodes.h
+++ b/src/include/nodes/parsenodes.h
@@ -3300,8 +3300,8 @@ typedef struct ConstraintsSetStmt
*/
/* Reindex options */
-#define REINDEXOPT_VERBOSE 1 << 0 /* print progress info */
-#define REINDEXOPT_REPORT_PROGRESS 1 << 1 /* report pgstat progress */
+#define REINDEXOPT_VERBOSE (1 << 0) /* print progress info */
+#define REINDEXOPT_REPORT_PROGRESS (1 << 1) /* report pgstat progress */
typedef enum ReindexObjectType
{