Commit 6ba54b3d267568584912da56c631bbe39736ea3a

dtremenak 2008-05-08T23:31:55

disable "'this': used in base member initializer list" warning. although it is dangerous practice, it's valid and ftgl does not use the passed pointer until well after the object is guaranteed to be fully constructed.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/msvc/config.h b/msvc/config.h
index 95c3856..b844d34 100644
--- a/msvc/config.h
+++ b/msvc/config.h
@@ -2,4 +2,9 @@
 #define HAVE_GL_GLUT_H
 
 // M_PI and friends on VC
-#define _USE_MATH_DEFINES
\ No newline at end of file
+#define _USE_MATH_DEFINES
+
+// quell spurious "'this': used in base member initializer list" warnings
+#ifdef _MSC_VER
+#pragma warning(disable: 4355)
+#endif