commit 30664ec1df714aee63c8319aad921f042e2051f3
parent 7b707fff52e006edbf98b0e12e1fad31ea344c33
Author: JP Cimalando <jp-dev@inbox.ru>
Date: Mon, 24 May 2021 21:58:31 +0200
Merge pull request #279 from jpcima/msvc-cmake
msvc: warning suppressions for template instantiations
Diffstat:
3 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/dgl/src/Cairo.cpp b/dgl/src/Cairo.cpp
@@ -15,6 +15,11 @@
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifdef _MSC_VER
+// instantiated template classes whose methods are defined elsewhere
+# pragma warning(disable:4661)
+#endif
+
#include "../Cairo.hpp"
#include "../Color.hpp"
#include "../ImageBaseWidgets.hpp"
diff --git a/dgl/src/Geometry.cpp b/dgl/src/Geometry.cpp
@@ -14,6 +14,11 @@
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifdef _MSC_VER
+// instantiated template classes whose methods are defined elsewhere
+# pragma warning(disable:4661)
+#endif
+
#include "../Geometry.hpp"
#include <cmath>
diff --git a/dgl/src/OpenGL.cpp b/dgl/src/OpenGL.cpp
@@ -14,6 +14,11 @@
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifdef _MSC_VER
+// instantiated template classes whose methods are defined elsewhere
+# pragma warning(disable:4661)
+#endif
+
#include "../OpenGL.hpp"
#include "../Color.hpp"
#include "../ImageWidgets.hpp"