bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Correct but unhelpful VLA warning vs. gnulib's gettext.h; can we eli


From: James Youngman
Subject: Re: Correct but unhelpful VLA warning vs. gnulib's gettext.h; can we eliminate the false positive?
Date: Mon, 11 Jul 2011 02:02:40 +0100

On Mon, Jul 11, 2011 at 1:11 AM, Paul Eggert <address@hidden> wrote:
> On 07/10/11 02:16, James Youngman wrote:
>> A function-level pragma would probably be ideal here, but
>> unfortunately they can only be used to tweak optimisation and function
>> attributes.
>
> Can you do "#pragma GCC diagnostic push" at the start of the function,
> and "#pragma GCC diagnostic pop" at the end?  That's *supposed* to
> work (not that I've tried it....).

I'll try it next week.   It's not documented in the GCC-4.4 Texinfo
manual, though; perhaps it's a recent introduction.

James.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]