On Fri, 2 Oct 2015, Marek Polacek wrote: > This patch continues fixing up this PR, where we were failing to give > diagnostics for attached testcases, because of NULL being defined in > a system header. Probably the best we can do at this time is just to > use expansion_point_location_if_in_system_header. That also means we > will warn for "RETURN" macro in the test below -- not sure if that's > wanted, but I currently do not see any way around it. > > Bootstrapped/regtested on x86_64-linux, ok for trunk and 5?
OK. I think warning for RETURN is correct - the user chose to call RETURN from a non-system-header function that was inappropriate for the macro, so the issue is in the user's code. -- Joseph S. Myers jos...@codesourcery.com