Skip to content

Commit 912d0ef

Browse files
committed
Fix compiler warnings after merge
1 parent 587b9bf commit 912d0ef

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

src/backend/postmaster/postmaster.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -2091,8 +2091,6 @@ ProcessStartupPacket(Port *port, bool ssl_done, bool gss_done)
20912091
{
20922092
int32 len;
20932093
char *buf;
2094-
ProtocolVersion proto;
2095-
MemoryContext oldcontext;
20962094

20972095
pq_startmsgread();
20982096

@@ -2294,7 +2292,7 @@ ParseStartupPacket(Port *port, MemoryContext memctx, void* buf, int len, bool ss
22942292

22952293
while (offset < len)
22962294
{
2297-
char *nameptr = buf + offset;
2295+
char *nameptr = (char*)buf + offset;
22982296
int32 valoffset;
22992297
char *valptr;
23002298

@@ -2303,7 +2301,7 @@ ParseStartupPacket(Port *port, MemoryContext memctx, void* buf, int len, bool ss
23032301
valoffset = offset + strlen(nameptr) + 1;
23042302
if (valoffset >= len)
23052303
break; /* missing value, will complain below */
2306-
valptr = buf + valoffset;
2304+
valptr = (char*)buf + valoffset;
23072305

23082306
if (strcmp(nameptr, "database") == 0)
23092307
port->database_name = pstrdup(valptr);

src/backend/utils/adt/lockfuncs.c

+2
Original file line numberDiff line numberDiff line change
@@ -676,12 +676,14 @@ pg_isolation_test_session_is_blocked(PG_FUNCTION_ARGS)
676676
* field4: 1 if using an int8 key, 2 if using 2 int4 keys
677677
*/
678678
#define SET_LOCKTAG_INT64(tag, key64) \
679+
MyProc->is_tainted = true; \
679680
SET_LOCKTAG_ADVISORY(tag, \
680681
MyDatabaseId, \
681682
(uint32) ((key64) >> 32), \
682683
(uint32) (key64), \
683684
1)
684685
#define SET_LOCKTAG_INT32(tag, key1, key2) \
686+
MyProc->is_tainted = true; \
685687
SET_LOCKTAG_ADVISORY(tag, MyDatabaseId, key1, key2, 2)
686688

687689
/*

src/backend/utils/misc/guc.c

+1
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ static const struct config_enum_entry session_schedule_options[] = {
492492
{"round-robin", SESSION_SCHED_ROUND_ROBIN, false},
493493
{"random", SESSION_SCHED_RANDOM, false},
494494
{"load-balancing", SESSION_SCHED_LOAD_BALANCING, false},
495+
{NULL, 0, false}
495496
};
496497

497498
static struct config_enum_entry recovery_init_sync_method_options[] = {

src/include/catalog/pg_proc.dat

+1-1
Original file line numberDiff line numberDiff line change
@@ -8170,7 +8170,7 @@
81708170
proname => 'gist_poly_distance', prorettype => 'float8',
81718171
proargtypes => 'internal polygon int2 oid internal',
81728172
prosrc => 'gist_poly_distance' },
8173-
{ oid => '3435', descr => 'sort support',
8173+
{ oid => '6105', descr => 'sort support',
81748174
proname => 'gist_point_sortsupport', prorettype => 'void',
81758175
proargtypes => 'internal', prosrc => 'gist_point_sortsupport' },
81768176

0 commit comments

Comments
 (0)