[nem-en] compiler warnings

Michal Moskal michal.moskal at gmail.com
Tue Jan 9 10:57:30 CET 2007


On 1/9/07, Kamil Skalski <kamil.skalski at gmail.com> wrote:
> Use -nowarn:168,10005,10003  switch (see help produced by executing
> compiler without parameters)

You can also use:

#pragma warning disable 168
...
#pragma warning restore 168

to disable it for a certain part of the code.

> 2007/1/9, Pieter Breed <pieter at pb.co.za>:
> > Hi,
> >
> > The compiler has a few warnings that I really don't want to see right now.
> > They include:
> >
> > warning : N168: a function parameter <name> was never used
> > warning : N10005: ignored computed value of type System.Object
> > warning : N10003: method <methodname>: void is not externally visible and
> > has never been referenced
> >
> > Is there a way to turn these warnings of?

-- 
   Michał


More information about the devel-en mailing list