On Mon, Aug 17, 2020 at 12:43 PM Paul Eggert <egg...@cs.ucla.edu> wrote: > > On 8/17/20 9:34 AM, Jeffrey Walton wrote: > > # pragma GCC diagnostic ignored "-Wreturn-local-addr" > > Unfortunately this doesn't work because GCC 10.1 and 10.2 mistakenly ignore > the > pragma. This is mentioned in a comment in the careadlinkat.c source, which > cites > GCC bug 95044, a duplicate of: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93644
GCC seems to have a lot of trouble with diagnostic pragmas: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431. I believe they work as expected with Clang. Jeff