aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtcc.c')
-rw-r--r--libtcc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libtcc.c b/libtcc.c
index b0ac2c7..6eea9a7 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -459,9 +459,8 @@ ST_FUNC void put_extern_sym2(Sym *sym, Section *section,
if (!sym->c) {
name = get_tok_str(sym->v, NULL);
#ifdef CONFIG_TCC_BCHECK
+ char buf[32];
if (tcc_state->do_bounds_check) {
- char buf[32];
-
/* XXX: avoid doing that for statics ? */
/* if bound checking is activated, we change some function
names by adding the "__bound" prefix */