From f9077dc9cd444f790f49dea358fb28cc9d5ac069 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Wed, 6 Jun 2012 22:03:35 +0000 Subject: [PATCH] Silence "number greater than INT32_MAX converted to a negative one" warning. Literals written out as if they were unsigned and having the highest-order bit set are all too ubiquitous, like hitscan masks for example. git-svn-id: https://svn.eduke32.com/eduke32@2742 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/gamedef.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index 127df5b11..18d03e2fd 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -1484,10 +1484,11 @@ static int32_t parse_decimal_number(void) // (textptr) // Number interpreted as uint32, but packed as int32 (on 32-bit archs) // (CON code in the wild exists that does this). Note that such conversion // is implementation-defined (C99 6.3.1.3) but GCC does the 'expected' thing. - +#if 0 initprintf("%s:%d: warning: number greater than INT32_MAX converted to a negative one.\n", g_szScriptFileName,g_lineNumber); g_numCompilerWarnings++; +#endif } else {