Skip to content

Commit 71f6838

Browse files
authored
fix use of constant initializer for static xml handle counter (#4117)
Currently in procedure.c static variable current_xml_handle_counter is assigned to a const int variable which is causing build failures for gcc version 7.3.1. Updated the constant variable declarations to MACRO. Signed-off-by: Rohit Bhagat [email protected]
1 parent 5f49a90 commit 71f6838

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/babelfishpg_tsql/src/procedures.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ static bool is_supported_case_sp_describe_undeclared_parameters = true;
119119
#define Anum_xml_handle_temp_table_ns_data 7
120120

121121
#define MD5_HASH_LEN 32
122+
#define XML_HANDLE_COUNTER_START 0
123+
#define XML_HANDLE_COUNTER_INVALID (INT_MAX / 2)
122124

123-
const int XML_HANDLE_COUNTER_START = 0;
124-
const int XML_HANDLE_COUNTER_INVALID = INT_MAX / 2;
125125
static int current_xml_handle_counter = XML_HANDLE_COUNTER_INVALID;
126126
Bitmapset *active_xml_handles_counter = NULL;
127127
static char *xml_handle_temp_table_name = NULL;

0 commit comments

Comments
 (0)