POV-Ray : Newsgroups : povray.programming : Attitude - A Suggestion for Future Discussions... : Re: Attitude - A Suggestion for Future Discussions... Server Time
28 Jul 2024 14:34:54 EDT (-0400)
  Re: Attitude - A Suggestion for Future Discussions...  
From: Thorsten Froehlich
Date: 2 Oct 2002 12:51:55
Message: <3d9b242b$1@news.povray.org>
In article <3d9b0f96@news.povray.org> , "Vadim Sytnikov" <syt### [at] rucom>
wrote:

> Not quite so... Although, yes, my setup is not completely standard: I'm
> using Visual C++ with /W2 for retail, and /W3 for debug compiles. To me,
> what the compiler complains about in these modes does make sense; in fact,
> it is VERY easy to write code that does not generate warnings under
> /W2/W3...

Ah, because all compilers are as defective as Visual C?  Ah, no, sorry, I
forgot, Visual C is the only true compiler around, and if it is broken, all
other compilers must be broken as well.  Sure!

In VC 6 as well as VC 7 you can turn off individual warning messages, just
by either putting them on the command line (as /wNNNN iirc, with NNNN being
the warning number) or by adding a #pragma warning directive (for POV-Ray in
config.h).

In fact, it seems the default set of warnings in Visual C is so useful that
even Microsoft's OS division needs to turn the most annoying and wrong ones
off (see below).  Kind of supports my point if M$ needs to disable the
useless warnings one of their own defective products generates, don't you
think? ;-)


    Thorsten


Beginning of "windows.h":

#ifndef RC_INVOKED
#if     ( _MSC_VER >= 800 )
#pragma warning(disable:4514)
#ifndef __WINDOWS_DONT_DISABLE_PRAGMA_PACK_WARNING__
#pragma warning(disable:4103)
#endif
#if _MSC_VER >= 1200
#pragma warning(push)
#endif
#pragma warning(disable:4001)
#pragma warning(disable:4201)
#pragma warning(disable:4214)
#endif
#include <excpt.h>
#include <stdarg.h>
#endif /* RC_INVOKED */

End of "windows.h":

#pragma warning(default:4001)
#pragma warning(default:4201)
#pragma warning(default:4214)
/* Leave 4514 disabled.  It's an unneeded warning anyway. */

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.