From 79d9a49d2872844f4ac41a3b6caf67e244720083 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 4 Jul 2014 22:46:55 -0700 Subject: [PATCH] Fix compiler bug. --- AMBuildScript | 1 - sourcepawn/compiler/sc1.c | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AMBuildScript b/AMBuildScript index 892e849a..dffad09e 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -163,7 +163,6 @@ class SMConfig(object): '-fno-strict-aliasing', '-Wall', '-Werror', - '-Wno-uninitialized', '-Wno-unused', '-Wno-switch', '-Wno-format', diff --git a/sourcepawn/compiler/sc1.c b/sourcepawn/compiler/sc1.c index a9ae861d..20af2c98 100644 --- a/sourcepawn/compiler/sc1.c +++ b/sourcepawn/compiler/sc1.c @@ -4881,11 +4881,12 @@ static cell fix_char_size(declinfo_t *decl) static symbol *funcstub(int tokid, declinfo_t *decl, const int *thistag) { - int tok,fpublic; + int tok; char *str; cell val,size; symbol *sym,*sub; int fnative = (tokid == tNATIVE || tokid == tMETHODMAP); + int fpublic = (tokid == tPUBLIC); lastst=0; litidx=0; /* clear the literal pool */