On 03/01/2016 07:10 AM, Marek Polacek wrote:
This PR from 2011 reports that -Waddress prints unhelpful warning when the
comparison comes from a macro. Since I've added from_macro_expansion_at,
this is easy to circumvent. I'm not so sure we actually want to disable
the warning in the case of a macro, but probably yes.
Bootstrapped/regtested on x86_64-linux, ok for trunk or should I defer to
GCC 7?
2016-03-01 Marek Polacek <pola...@redhat.com>
PR c/48778
* c-typeck.c (build_binary_op): Don't issue -Waddress warnings
for macro expansions.
* gcc.dg/Waddress-2.c: New test.
I've got mixed feelings about this patch. Though we have traditionally
desired to suppress some warnings that occur due to macro expansions,
based on that, I'll ack for the trunk.
Thanks,
jeff