From 5e61d7f95243a073fed5ef3f737a84cdb355dd82 Mon Sep 17 00:00:00 2001 From: Molgrum Date: Sat, 22 Sep 2007 18:16:59 +0000 Subject: [PATCH] Don't do #warning on MSVS crap compilers. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2668 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/valid.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/engine/client/valid.c b/engine/client/valid.c index fb119b05..92bdd2b1 100644 --- a/engine/client/valid.c +++ b/engine/client/valid.c @@ -310,7 +310,9 @@ void Validation_FlushFileList(void) static void Validation_Server(void) { +#ifndef _MSC_VER #warning is allowing the user to turn this off practical?.. +#endif if (!allow_f_server.value) return; Cbuf_AddText(va("say server is %s\n", NET_AdrToString(cls.netchan.remote_address)), RESTRICT_LOCAL); @@ -503,7 +505,9 @@ void Validation_Apply_Ruleset(void) cvar_t *var; int i; -#warning fixme: the following line should not be needed. ensure this is the case +#ifndef _MSC_VER + #warning fixme: the following line should not be needed. ensure this is the case +#endif Validation_DelatchRulesets(); //make sure there's no old one if (!*ruleset.string || !strcmp(ruleset.string, "none"))