From b2bb3dc0e0d9825640654b9ae0b82c1a747d42ea Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Tue, 24 Jul 2018 08:59:36 -0700 Subject: [PATCH] Defend against some potential spurious compiler warnings in 86eaf208e. Author: David Rowley Discussion: https://postgr.es/m/CAKJS1f-AbCFeFU92GZZYqNOVRnPtUwczSYmR2NHCyf9uHUnNiw@mail.gmail.com --- src/backend/utils/adt/numutils.c | 4 ++++ 1 file changed, 4 insertions(+) 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 */ } /* -- 2.40.0