lua-users home
lua-l archive

Re: [ANN] Lua 5.2.0 (work1) now available

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


On 11/01/2010 14:54, David Burgess wrote:
You can do it individually.
At one stage my coding style was to wrap spurious warnings like:
#pragma warning( disable : 4514 )
<code ... />
#pragma warning( enable : 4514 )
This also highlights to the programmer that One (hopefully) knows what
they are doing. MS use this approach in their SDK code.
I cant remember it offhand but I know you can do the same in GCC
I would be cleaner to put options to disable warnings in the make files, no?
Otherwise, you will get code riddled with compiler-dependent pragmas, which looks quite ugly for code that aims to be super-portable... On the other hand, we loose the precision above (disable only for a region of code), but well, we can suppose Lua's coders know what they do in general... :)
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --

AltStyle によって変換されたページ (->オリジナル) /