Skip to content

Commit b2bb3dc

Browse files
committed
Defend against some potential spurious compiler warnings in 86eaf20.
Author: David Rowley Discussion: https://postgr.es/m/CAKJS1f-AbCFeFU92GZZYqNOVRnPtUwczSYmR2NHCyf9uHUnNiw@mail.gmail.com
1 parent fb42123 commit b2bb3dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/backend/utils/adt/numutils.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ pg_strtoint16(const char *s)
181181
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
182182
errmsg("invalid input syntax for type %s: \"%s\"",
183183
"smallint", s)));
184+
185+
return 0; /* keep compiler quiet */
184186
}
185187

186188
/*
@@ -255,6 +257,8 @@ pg_strtoint32(const char *s)
255257
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
256258
errmsg("invalid input syntax for type %s: \"%s\"",
257259
"integer", s)));
260+
261+
return 0; /* keep compiler quiet */
258262
}
259263

260264
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy