misc.

This snippet is for miscellaneous bits of code specific to individual languages.

Download misc.zip

Synopsis:

warningson.h
warningsoff.h


warningson.h

Synopsis
//leave this off! #pragma warning(default: 4711) //selected for automatic inline expansion
#pragma warning(default: 4201) //nonstandard extension used : nameless struct/union
//leave this off! #pragma warning(default: 4786) //debug info truncated to 255 chars
//leave this off! #pragma warning(default: 4820) //padding added
//leave this off! #pragma warning(default: 4668) //preprocessor symbol not defined, using '0'
#pragma warning(default: 4917) //a GUID can only be associated with a class, interface or namespace
//leave this off! #pragma warning(default: 4217) //member template functions cannot be used for copy-assignment or copy-construction
//leave this off! #pragma warning(default: 4710) //function 'xxx' not inlined

warningsoff.h

Synopsis
//make sure you:
//  1) use the /Wall compiler switch
//  2) put '#include "WarningsOff.h"' before any system library includes
//  3) put '#include "WarningsOn.h"' after any system library includes
#pragma warning(disable: 4711) //selected for automatic inline expansion
#pragma warning(disable: 4201) //nonstandard extension used : nameless struct/union
#pragma warning(disable: 4786) //debug info truncated to 255 chars
#pragma warning(disable: 4820) //padding added
#pragma warning(disable: 4668) //preprocessor symbol not defined, using '0'
#pragma warning(disable: 4917) //a GUID can only be associated with a class, interface or namespace
#pragma warning(disable: 4217) //member template functions cannot be used for copy-assignment or copy-construction
#pragma warning(disable: 4710) //function 'xxx' not inlined






Contact me about content on this page using john_web-at-arrizza-dot-com
For Web Master or site problems contact: webadmin-at-arrizza-dot-com
Copyright John Arrizza (c) 2001-2010