lua-users home
lua-l archive

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


> 
> Roberto Ierusalimschy wrote:
> >(Any compiler should provide a standard (and documented) way to silence
> >each of its warnings.)
> >
> >-- Roberto
> 
> MS VCs (all of them I think use
> e.g.
> #pragma warning( disable : 4514 )
> 
> #pragma warning( disable : errorlist  ... )
> 
> I am not sure about gcc.
> 
> However one of the rules of #pragma methinks is that compilers are
> supposed to ignore it if they do not understand it.

What I meant was a way to silence each instance of them, individually.
Some way to say "here I know what I am doing". Things like extra
parentheses, explicit casts, casts to void, etc.

-- Roberto