Re: [HACKERS] new gcc 7.0.1 warnings - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [HACKERS] new gcc 7.0.1 warnings
Date
Msg-id d726c57a-0681-7671-1166-a333c161458b@2ndquadrant.com
Whole thread Raw
In response to [HACKERS] new gcc 7.0.1 warnings  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: [HACKERS] new gcc 7.0.1 warnings  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
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]

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



pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: [HACKERS] Explicit subtransactions for PL/Tcl
Next
From: Mark Dilger
Date:
Subject: Re: [HACKERS] Hash support for grouping sets