From d7931a28ce2d903761b4eff4b5486bde77664bca Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Tue, 3 Jan 2012 21:20:37 +0100 Subject: [PATCH] MSVC: don't try to compile unknown pragma --- simgear/math/SGSphere.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/simgear/math/SGSphere.hxx b/simgear/math/SGSphere.hxx index d3d190e0..9806e9e8 100644 --- a/simgear/math/SGSphere.hxx +++ b/simgear/math/SGSphere.hxx @@ -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 class SGSphere { -- 2.39.5