Commit 73616126 authored by Andres Freund's avatar Andres Freund

Fix some spurious new compiler warnings in MSVC.

Per buildfarm animal bowerbird.

Discussion: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=bowerbird&dt=2018-11-17%2002%3A30%3A20
parent 4da597ed
...@@ -132,6 +132,8 @@ static Datum ...@@ -132,6 +132,8 @@ static Datum
tts_virtual_getsysattr(TupleTableSlot *slot, int attnum, bool *isnull) tts_virtual_getsysattr(TupleTableSlot *slot, int attnum, bool *isnull)
{ {
elog(ERROR, "virtual tuple table slot does not have system atttributes"); elog(ERROR, "virtual tuple table slot does not have system atttributes");
return 0; /* silence compiler warnings */
} }
/* /*
...@@ -488,6 +490,8 @@ static Datum ...@@ -488,6 +490,8 @@ static Datum
tts_minimal_getsysattr(TupleTableSlot *slot, int attnum, bool *isnull) tts_minimal_getsysattr(TupleTableSlot *slot, int attnum, bool *isnull)
{ {
elog(ERROR, "minimal tuple table slot does not have system atttributes"); elog(ERROR, "minimal tuple table slot does not have system atttributes");
return 0; /* silence compiler warnings */
} }
static void static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment