]> granicus.if.org Git - postgresql/commitdiff
Defend against some potential spurious compiler warnings in 86eaf208e.
authorAndres Freund <andres@anarazel.de>
Tue, 24 Jul 2018 15:59:36 +0000 (08:59 -0700)
committerAndres Freund <andres@anarazel.de>
Tue, 24 Jul 2018 17:10:22 +0000 (10:10 -0700)
Author: David Rowley
Discussion: https://postgr.es/m/CAKJS1f-AbCFeFU92GZZYqNOVRnPtUwczSYmR2NHCyf9uHUnNiw@mail.gmail.com

src/backend/utils/adt/numutils.c

index 49055d519cbac7284172bf0490d45f5856fd0da5..0fa167d334def005184fd93f018565162902f4bd 100644 (file)
@@ -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 */
 }
 
 /*