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)