]> git.saurik.com Git - wxWidgets.git/commitdiff
globally disable VC++'s warning 4251 (non-exported member in dll-exported class and...
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 7 Oct 2007 17:15:37 +0000 (17:15 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 7 Oct 2007 17:15:37 +0000 (17:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/defs.h
include/wx/xrc/xmlres.h

index 65d3a8a726d7cd8a2a361014b9d80bdef26017b7..838021c9c8df5bdd4e23f2146f2923beb2dde251 100644 (file)
 #   pragma warning(disable:4512)    /*  operator=() couldn't be generated */
 #   pragma warning(disable:4710)    /*  function not inlined */
 
+    /* There are too many false positivies for this one, particularly when
+       using templates like wxVector<T> */
+    /* class 'foo' needs to have dll-interface to be used by clients of
+       class 'bar'" */
+#   pragma warning(disable:4251)
+
     /* For VC++ 5.0 for release mode, the warning 'C4702: unreachable code */
     /* is buggy, and occurs for code that does actually get executed */
 #   if !defined __WXDEBUG__ && __VISUALC__ <= 1100
index 877dc1237db1d2942535acfdce2986e5afc5a45a..6146f5956f6ef216efc38f7e83c199257c2665c4 100644 (file)
@@ -273,7 +273,7 @@ private:
     long m_version;
 
     int m_flags;
-    class WXDLLIMPEXP_FWD_XRC wxVector<wxXmlResourceHandler*> m_handlers;
+    wxVector<wxXmlResourceHandler*> m_handlers;
     wxXmlResourceDataRecords *m_data;
 #if wxUSE_FILESYSTEM
     wxFileSystem m_curFileSystem;