From: Alvaro Herrera Date: Fri, 13 Sep 2019 19:26:55 +0000 (-0300) Subject: Fix under-parenthesized macro definitions X-Git-Tag: REL9_5_20~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=83c2c97114de330dc0c1a11f0edfe0f9bf116614;p=thirdparty%2Fpostgresql.git 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 --- diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 4a198420abc..03865e71651 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -2893,7 +2893,7 @@ typedef struct ConstraintsSetStmt */ /* Reindex options */ -#define REINDEXOPT_VERBOSE 1 << 0 /* print progress info */ +#define REINDEXOPT_VERBOSE (1 << 0) /* print progress info */ typedef enum ReindexObjectType {