From Piotr Gwiazdowski, "So there's config setting OSG_DISABLE_MSVC_WARNINGS which should
disable pragmas that turn off specific warnings for MSVC. Unfortunately it's presence is only checked in osg/Export header, making other Export headers disable warnings no matter what, which is kind of incoherent. My fix adds #include <osg/Config> to every Export header. I've also unified checking whether to disable warnings to current osg/Export way: #if defined(_MSC_VER) && defined(OSG_DISABLE_MSVC_WARNINGS). Attachment contains all changed Export files in their original locations."
This commit is contained in:
@@ -15,7 +15,9 @@
|
||||
#ifndef OSGANIMATION_EXPORT_
|
||||
#define OSGANIMATION_EXPORT_ 1
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#include<osg/Config>
|
||||
|
||||
#if defined(_MSC_VER) && defined(OSG_DISABLE_MSVC_WARNINGS)
|
||||
#pragma warning( disable : 4244 )
|
||||
#pragma warning( disable : 4251 )
|
||||
#pragma warning( disable : 4267 )
|
||||
|
||||
Reference in New Issue
Block a user