summaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-12-12 16:30:20 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-12-12 16:30:20 +0100
commitb6afcc78194aa0801544bc606b9562339c846eb4 (patch)
tree7e0bc1d3f16b226201ec8a997be8c916f9d27940 /shell/ash.c
parent4f13a7050787aadb402c9c47aae0ff778dbc2c8b (diff)
downloadbusybox-w32-b6afcc78194aa0801544bc606b9562339c846eb4.tar.gz
busybox-w32-b6afcc78194aa0801544bc606b9562339c846eb4.tar.bz2
busybox-w32-b6afcc78194aa0801544bc606b9562339c846eb4.zip
shell: suppress "unused var/func" warnings on some configs
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 2bdb4aad7..91bcccb9d 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -11373,13 +11373,13 @@ readtoken1(int c, int syntax, char *eofmark, int striptabs)
11373 smallint quotef; 11373 smallint quotef;
11374 smallint dblquote; 11374 smallint dblquote;
11375 smallint oldstyle; 11375 smallint oldstyle;
11376 smallint prevsyntax; /* syntax before arithmetic */ 11376 IF_SH_MATH_SUPPORT(smallint prevsyntax;) /* syntax before arithmetic */
11377#if ENABLE_ASH_EXPAND_PRMT 11377#if ENABLE_ASH_EXPAND_PRMT
11378 smallint pssyntax; /* we are expanding a prompt string */ 11378 smallint pssyntax; /* we are expanding a prompt string */
11379#endif 11379#endif
11380 int varnest; /* levels of variables expansion */ 11380 int varnest; /* levels of variables expansion */
11381 int arinest; /* levels of arithmetic expansion */ 11381 IF_SH_MATH_SUPPORT(int arinest;) /* levels of arithmetic expansion */
11382 int parenlevel; /* levels of parens in arithmetic */ 11382 IF_SH_MATH_SUPPORT(int parenlevel;) /* levels of parens in arithmetic */
11383 int dqvarnest; /* levels of variables expansion within double quotes */ 11383 int dqvarnest; /* levels of variables expansion within double quotes */
11384 11384
11385 IF_ASH_BASH_COMPAT(smallint bash_dollar_squote = 0;) 11385 IF_ASH_BASH_COMPAT(smallint bash_dollar_squote = 0;)
@@ -11387,7 +11387,7 @@ readtoken1(int c, int syntax, char *eofmark, int striptabs)
11387 startlinno = g_parsefile->linno; 11387 startlinno = g_parsefile->linno;
11388 bqlist = NULL; 11388 bqlist = NULL;
11389 quotef = 0; 11389 quotef = 0;
11390 prevsyntax = 0; 11390 IF_SH_MATH_SUPPORT(prevsyntax = 0;)
11391#if ENABLE_ASH_EXPAND_PRMT 11391#if ENABLE_ASH_EXPAND_PRMT
11392 pssyntax = (syntax == PSSYNTAX); 11392 pssyntax = (syntax == PSSYNTAX);
11393 if (pssyntax) 11393 if (pssyntax)
@@ -11395,8 +11395,8 @@ readtoken1(int c, int syntax, char *eofmark, int striptabs)
11395#endif 11395#endif
11396 dblquote = (syntax == DQSYNTAX); 11396 dblquote = (syntax == DQSYNTAX);
11397 varnest = 0; 11397 varnest = 0;
11398 arinest = 0; 11398 IF_SH_MATH_SUPPORT(arinest = 0;)
11399 parenlevel = 0; 11399 IF_SH_MATH_SUPPORT(parenlevel = 0;)
11400 dqvarnest = 0; 11400 dqvarnest = 0;
11401 11401
11402 STARTSTACKSTR(out); 11402 STARTSTACKSTR(out);