]> git.mxchange.org Git - simgear.git/commitdiff
MSVC: don't try to compile unknown pragma
authorFrederic Bouvier <fredfgfs01@free.fr>
Tue, 3 Jan 2012 20:20:37 +0000 (21:20 +0100)
committerFrederic Bouvier <fredfgfs01@free.fr>
Tue, 3 Jan 2012 20:20:37 +0000 (21:20 +0100)
simgear/math/SGSphere.hxx

index d3d190e0cc2df0a79bb784a357e14dfe653915ea..9806e9e89423dd0b4ac66b4886bfeb81fe039212 100644 (file)
@@ -18,7 +18,9 @@
 #ifndef SGSphere_H
 #define SGSphere_H
 
-#pragma GCC diagnostic ignored "-Wuninitialized" SGSphere();
+#ifndef _MSC_VER
+#   pragma GCC diagnostic ignored "-Wuninitialized" SGSphere();
+#endif
 
 template<typename T>
 class SGSphere {