From: Andres Freund Date: Tue, 24 Jul 2018 15:59:36 +0000 (-0700) Subject: Defend against some potential spurious compiler warnings in 86eaf208e. X-Git-Tag: REL_12_BETA1~1824 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2bb3dc0e0d9825640654b9ae0b82c1a747d42ea;p=postgresql Defend against some potential spurious compiler warnings in 86eaf208e. Author: David Rowley Discussion: https://postgr.es/m/CAKJS1f-AbCFeFU92GZZYqNOVRnPtUwczSYmR2NHCyf9uHUnNiw@mail.gmail.com --- diff --git a/src/backend/utils/adt/numutils.c b/src/backend/utils/adt/numutils.c index 49055d519c..0fa167d334 100644 --- a/src/backend/utils/adt/numutils.c +++ b/src/backend/utils/adt/numutils.c @@ -181,6 +181,8 @@ invalid_syntax: (errcode(ERRCODE_INVALID_TEXT_REPRESENTATION), errmsg("invalid input syntax for type %s: \"%s\"", "smallint", s))); + + return 0; /* keep compiler quiet */ } /* @@ -255,6 +257,8 @@ invalid_syntax: (errcode(ERRCODE_INVALID_TEXT_REPRESENTATION), errmsg("invalid input syntax for type %s: \"%s\"", "integer", s))); + + return 0; /* keep compiler quiet */ } /*