From 61d374b726317ed0717d5c077b641da557757f7d Mon Sep 17 00:00:00 2001 From: Don BURNS Date: Mon, 29 Nov 2004 18:59:36 +0000 Subject: [PATCH] Added pragma to shut VS 6 up. --- examples/osgsimulation/osgsimulation.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/examples/osgsimulation/osgsimulation.cpp b/examples/osgsimulation/osgsimulation.cpp index 8e5e1ce48..64e02a84c 100644 --- a/examples/osgsimulation/osgsimulation.cpp +++ b/examples/osgsimulation/osgsimulation.cpp @@ -1,3 +1,21 @@ +#ifdef WIN32 +///////////////////////////////////////////////////////////////////////////// +// Disable unavoidable warning messages: + +// 4103: used #pragma pack to change alignment +// 4114: same type qualifier used more than once +// 4201: nonstandard extension used : nameless struct/union +// 4237: "keyword" reserved for future use +// 4251: class needs to have dll-interface to export class +// 4275: non DLL-interface class used as base for DLL-interface class +// 4290: C++ Exception Specification ignored +// 4503: decorated name length exceeded, name was truncated +// 4786: string too long - truncated to 255 characters + +#pragma warning(disable : 4103 4114 4201 4237 4251 4275 4290 4503 4335 4786) + +#endif // WIN32 + #include #include