From: Tom Lane Date: Wed, 2 May 2018 04:25:35 +0000 (-0400) Subject: Fix compiler warning on Windows. X-Git-Tag: REL_11_BETA1~120 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe4ecd08d81cfea7f0512189893cc02cf261ccde;p=postgresql Fix compiler warning on Windows. Commit 41c912cad caused MSVC to complain that not all control paths return a value. Thomas Munro Discussion: https://postgr.es/m/CAEepm%3D3%3DTDYEXUEcHpEx%2BTwc31wo7PA0oBAiNt6sWmq93MW02A%40mail.gmail.com --- diff --git a/src/bin/pgbench/pgbench.c b/src/bin/pgbench/pgbench.c index c36556c497..f0c5149523 100644 --- a/src/bin/pgbench/pgbench.c +++ b/src/bin/pgbench/pgbench.c @@ -1980,7 +1980,8 @@ evalStandardFunc(TState *thread, CState *st, } } - break; /* NOTREACHED */ + Assert(0); + return false; /* NOTREACHED */ } /* integer bitwise operators */