Re: [PATCH] Fix duplicated warning with __attribute__((format)) (PR c/64223)

2015-05-27 Thread Jeff Law
On 05/26/2015 05:06 AM, Marek Polacek wrote: Ping. On Tue, May 19, 2015 at 04:07:53PM +0200, Marek Polacek wrote: This PR points out that we output same -Wformat warning twice when using __attribute__ ((format)). The problem was that attribute_value_equal (called when processing merge_attribut

Re: [PATCH] Fix duplicated warning with __attribute__((format)) (PR c/64223)

2015-05-26 Thread Marek Polacek
Ping. On Tue, May 19, 2015 at 04:07:53PM +0200, Marek Polacek wrote: > This PR points out that we output same -Wformat warning twice when using > __attribute__ ((format)). The problem was that attribute_value_equal > (called when processing merge_attributes) got two lists: > "format printf, 1, 2"

[PATCH] Fix duplicated warning with __attribute__((format)) (PR c/64223)

2015-05-19 Thread Marek Polacek
This PR points out that we output same -Wformat warning twice when using __attribute__ ((format)). The problem was that attribute_value_equal (called when processing merge_attributes) got two lists: "format printf, 1, 2" and "__format__ __printf__, 1, 2", these should be equal. But since attribut