From: Frederic Bouvier Date: Tue, 3 Jan 2012 20:20:37 +0000 (+0100) Subject: MSVC: don't try to compile unknown pragma X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d7931a28ce2d903761b4eff4b5486bde77664bca;p=simgear.git MSVC: don't try to compile unknown pragma --- 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 {