|
From: | Russ Allbery |
Subject: | Re: [Bug-gnubg] Misapplied UNUSED parameter in current CVS snapshot |
Date: | Sun, 29 Apr 2012 15:52:58 -0700 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) |
Michael Petch <address@hidden> writes: > Might it be better to do it this way? So that the compiler warning for > both cases is suppressed? Although it's a bit ugly it covers the case > for HAVE_LIBGMP being used or not. Yeah, that works. Usually I just tag the variable with the unused attribute rather than renaming it to handle cases like this where it's only conditionally unused. I assume you're also doing the renaming because you want to force a compilation error if the assumption about the variable being unused is false? That's kind of a neat trick; I've not seen that before. -- Russ Allbery (address@hidden) <http://www.eyrie.org/~eagle/>
[Prev in Thread] | Current Thread | [Next in Thread] |