Skip to content

Commit

Permalink
Fix GCC warning: decompress_bunzip2.c
Browse files Browse the repository at this point in the history
Message :The frame size of 1888 bytes is larger than 1024 bytes.
Solved by separating variables with static variables in function 'get_next_block' which run once on boot.
  • Loading branch information
burstlam authored and KonstaT committed Jan 28, 2012
1 parent 1a5c388 commit f7a5448
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/decompress_bunzip2.c
Expand Up @@ -158,9 +158,9 @@ static int INIT get_next_block(struct bunzip_data *bd)
int *base = NULL;
int *limit = NULL;
int dbufCount, nextSym, dbufSize, groupCount, selector,
i, j, k, t, runPos, symCount, symTotal, nSelectors,
byteCount[256];
unsigned char uc, symToByte[256], mtfSymbol[256], *selectors;
i, j, k, t, runPos, symCount, symTotal, nSelectors;
static int byteCount[256];
static unsigned char symToByte[256], mtfSymbol[256];
unsigned int *dbuf, origPtr;

dbuf = bd->dbuf;
Expand Down

0 comments on commit f7a5448

Please sign in to comment.