From d0a3b102c672bd07f190eacb7f95643a89d27c9a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 8 Jul 2011 16:12:20 +0800 Subject: [MEMALLOC] Avoid gcc warning: variable 'oldstackp' set but not used * src/memalloc.c (growstackblock): Remove declaration and set of set-but-not-used variable. Also remove a stray space-before-TAB. Signed-off-by: Jim Meyering Signed-off-by: Herbert Xu --- ChangeLog | 4 ++++ src/memalloc.c | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2093fc7..18ed330 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,10 @@ * Optimize dash -c "command" to avoid a fork. * Eliminate unnecessary promotion in echocmd. +2011-05-23 Jim Meyering + + * Avoid gcc warning: variable 'oldstackp' set but not used. + 2011-05-22 Jonathan Nieder * Make outc an inline function. diff --git a/src/memalloc.c b/src/memalloc.c index e75e609..9fea067 100644 --- a/src/memalloc.c +++ b/src/memalloc.c @@ -206,20 +206,18 @@ growstackblock(void) { size_t newlen; - newlen = stacknleft * 2; + newlen = stacknleft * 2; if (newlen < stacknleft) sh_error("Out of space"); if (newlen < 128) newlen += 128; if (stacknxt == stackp->space && stackp != &stackbase) { - struct stack_block *oldstackp; struct stack_block *sp; struct stack_block *prevstackp; size_t grosslen; INTOFF; - oldstackp = stackp; sp = stackp; prevstackp = sp->prev; grosslen = newlen + sizeof(struct stack_block) - MINSIZE; -- cgit 1.4.1 >
Commit message (Expand)Author
2018-08-29memalloc: Avoid looping in growstacktoHerbert Xu
2018-08-29eval: Always set localvar_stopHerbert Xu
2018-08-29expand: Do not reprocess data when expanding wordsHerbert Xu
2018-08-29expand: Fix skipping of command substitution when trimming in evalvarHerbert Xu
2018-08-29expand: Merge syntax/quotes in memtodest with flagsHerbert Xu
2018-08-29expand: Use HOME in tilde expansion when it is emptyHerbert Xu
2018-08-29shell: Don't include config.h for native helpersPeter Korsgaard
2018-05-28builtin: Use test_access from NetBSD when faccessat is unavailableHerbert Xu
2018-05-28eval: Add vfork supportHerbert Xu
2018-05-28eval: Replace with listsetvar with mklocal/setvareqHerbert Xu
2018-05-28eval: Fail immediately with redirections errors for simple commandHerbert Xu
2018-05-28eval: Add assignment built-in support againHerbert Xu
2018-05-28exec: Never rehash regular built-insHerbert Xu
2018-05-28exec: Stricter pathopt parsingHerbert Xu
2018-05-28builtin: Mark more regular built-insHerbert Xu
2018-05-28exec: Do not allocate stack string in padvanceHerbert Xu
2018-05-28memalloc: Add growstackto helperHerbert Xu
2018-05-28jobs: Replace some uses of fmtstr with stpcpy/stpncpyHerbert Xu
2018-05-28output: Fix fmtstr return valueHerbert Xu
2018-05-28var: Set IFS to fixed value at start timeHerbert Xu
2018-05-28parser: Save/restore here-documents in command substitutionHerbert Xu
2018-05-28jobs: Only clear gotsigchld when waiting for everythingHerbert Xu
2018-05-28mkinit: Split reset into exitreset and resetHerbert Xu
2018-05-28main: Only set savestatus in exitcmdHerbert Xu
2018-05-28exec: Return 126 on most errors in shellexecHerbert Xu
2018-05-17Release 0.5.10.2.Herbert Xu
2018-05-15parser: Fix incorrect eating of backslash newlinesHerbert Xu
2018-05-10Release 0.5.10.1.Herbert Xu
2018-05-09jobs - Do not block when waiting on SIGCHLDHerbert Xu
2018-05-03Release 0.5.10.Herbert Xu
2018-04-19eval: Variable assignments on functions are no longer persistentHerbert Xu
2018-04-19parser: Fix parameter expansion inside inner double quotesHerbert Xu
2018-04-19parser: Fix parsing of ${}Herbert Xu
2018-04-19man: correct typos, iff -> ifMartijn Dekker
2018-04-19expand: Do not quote backslashes in unquoted parameter expansionHerbert Xu
2018-04-19shell: Add subdir-objects to AM_INIT_AUTOMAKEJason Bowen
2018-04-19eval: Restore input files in evalcommandHerbert Xu
2018-04-19eval: Reap zombies after built-in commands and functionsHerbert Xu
2018-04-19redir: Fix typo in noclobber codeHerbert Xu
2018-04-19expand: Fix glibc glob(3) supportHerbert Xu
2018-04-02expand: Fix buffer overflow in expandmetaHerbert Xu
2018-04-02builtin: Move echo space/nl handling into print_escape_strHerbert Xu
2018-04-02builtin: Fix echo performance regressionHerbert Xu
2018-04-02expand: Fix ghost fields with unquoted $@/$*Herbert Xu
2018-04-02parser: Allow newlines within parameter substitutionHerbert Xu
2018-04-02expand: Fix bugs with words connected to the right of $@Herbert Xu
2018-03-25Revert "[BUILTIN] Remove unnecessary restoration of format string in printf"Herbert Xu
2018-03-22parser: Fix backquote support in here-document EOF markHerbert Xu