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