Re: new gcc 7.0.1 warnings

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: new gcc 7.0.1 warnings
Date: 2017-03-08 16:13:06
Message-ID: CAFj8pRDhJMx71aG-_PVUgyoOEmo7Be-QBD-N7QSsB+H87X3jKA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2017-03-08 16:59 GMT+01:00 Peter Eisentraut <
peter(dot)eisentraut(at)2ndquadrant(dot)com>:

> On 2/18/17 02:08, Pavel Stehule wrote:
> > I am checking new Fedora 26, where new gcc compiler is used.
> >
> > float.c: In function ‘float4out’:
> > float.c:382:41: warning: ‘%.*g’ directive output may be truncated
> > writing between 1 and 310 bytes into a region of size 65
> > [-Wformat-truncation=]
> > snprintf(ascii, MAXFLOATWIDTH + 1, "%.*g", ndig, num);
>
> It appears these warnings no longer happen with a newer gcc-7 snapshot.
> I'm using
>
> gcc-7 (Debian 7-20170302-1) 7.0.1 20170302 (experimental) [trunk
> revision 245832]
>
>
gcc (GCC) 7.0.1 20170225 is on Fc still :(

Regards

Pavel

> --
> Peter Eisentraut http://www.2ndQuadrant.com/
> PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2017-03-08 16:17:20 Re: CREATE/ALTER ROLE PASSWORD ('value' USING 'method')
Previous Message Pavel Stehule 2017-03-08 16:10:53 Re: patch: function xmltable