From: Andres Freund Date: Sat, 17 Nov 2018 19:41:14 +0000 (-0800) Subject: Fix some spurious new compiler warnings in MSVC. X-Git-Tag: REL_12_BETA1~1212 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73616126b4dcd01c833b06d4572959734f38b163;p=postgresql 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 --- diff --git a/src/backend/executor/execTuples.c b/src/backend/executor/execTuples.c index b6c9bbcd9a..c9523c503f 100644 --- a/src/backend/executor/execTuples.c +++ b/src/backend/executor/execTuples.c @@ -132,6 +132,8 @@ static Datum tts_virtual_getsysattr(TupleTableSlot *slot, int attnum, bool *isnull) { elog(ERROR, "virtual tuple table slot does not have system atttributes"); + + return 0; /* silence compiler warnings */ } /* @@ -488,6 +490,8 @@ static Datum tts_minimal_getsysattr(TupleTableSlot *slot, int attnum, bool *isnull) { elog(ERROR, "minimal tuple table slot does not have system atttributes"); + + return 0; /* silence compiler warnings */ } static void