From f41bd37c8171fa2ca0780d7a2afa380634449e8f Mon Sep 17 00:00:00 2001 From: olsner Date: Thu, 26 Jun 2008 07:43:22 +0000 Subject: [PATCH] Only use #pragma warning on MSVC This was SVN commit r6115. --- source/dcdt/se/0ad_warning_disable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/dcdt/se/0ad_warning_disable.h b/source/dcdt/se/0ad_warning_disable.h index 1685f1c00c..da5bce4419 100644 --- a/source/dcdt/se/0ad_warning_disable.h +++ b/source/dcdt/se/0ad_warning_disable.h @@ -1,6 +1,8 @@ +#ifdef _MSC_VER #pragma warning(push, 3) // it's way too much work to check all of these (runtime invariants may // ensure the code is safe but cannot automatically be proved by the // compiler) #pragma warning(disable:4701) // "potentially uninitialized variable" +#endif