pgsql: Suppress -Wunused-result warning for strtol(). - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Suppress -Wunused-result warning for strtol().
Date
Msg-id E1bZkki-0007YV-LH@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Suppress -Wunused-result warning for strtol().

I'm not sure which bozo thought it's a problem to use strtol() only
for its endptr result, but silence the warning using same method
used elsewhere.

Report: <f845d3a6-5328-3e2a-924f-f8e91aa2b6d2@2ndquadrant.com>

Branch
------
REL9_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/f1222ad61a362e67ebb9284d0265470d05b5e338

Modified Files
--------------
src/backend/utils/adt/dbsize.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql: Remove bogus dependencies on NUMERIC_MAX_PRECISION.
Next
From: Tom Lane
Date:
Subject: pgsql: Suppress -Wunused-result warning for strtol().