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 {