help-gsl
[Top][All Lists]
Advanced

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

Re: [Help-gsl] unused variable warning


From: Brian Gough
Subject: Re: [Help-gsl] unused variable warning
Date: Mon, 02 Apr 2007 14:56:25 +0100
User-agent: Wanderlust/2.14.0 (Africa) Emacs/21.3 Mule/5.0 (SAKAKI)

At 28 Mar 2007 21:18:54 -0000,
Awhan Patnaik wrote:
> Presuming that the function declaration is a standard one is
> GSL. How can I get rid of the warning?  Is there some elegant way
> apart from a dirty hack of using ``t\" is some operation which has
> no real meaning and exists only to get rid of the warning ?

Hello,

g++ provides an __unused__ attribute that disables the warning, see
the "Variable Attributes" section of the GCC manual for details.

-- 
Brian Gough
(GSL Maintainer)

Network Theory Ltd,
Publishing the GSL Manual - http://www.network-theory.co.uk/gsl/manual/




reply via email to

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