Skip to content

Commit

Permalink
fix "set but not used"
Browse files Browse the repository at this point in the history
  • Loading branch information
phoddie committed Jun 1, 2023
1 parent bcdcae1 commit abfbf1b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions modules/commodetto/picojpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -731,13 +731,13 @@ static uint8 readSOSMarker(void)
static uint8 nextMarker(void)
{
uint8 c;
uint8 bytes = 0;
// uint8 bytes = 0;

do
{
do
{
bytes++;
// bytes++;

c = (uint8)getBits1(8);

Expand Down
6 changes: 3 additions & 3 deletions modules/piu/PC/Code/piuCode.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,9 +680,9 @@ void PiuCodeSearch(PiuCode* self, uint32_t size)
PiuTextBufferClear(the, results);
if ((*self)->code) {
int32_t offset = 0;
int32_t itemCount = 0;
// int32_t itemCount = 0;
int32_t itemSize = 0;
itemCount = 0;
// itemCount = 0;
itemSize = sizeof(PiuCodeResultRecord);
for (;;) {
former = (*results)->current;
Expand All @@ -703,7 +703,7 @@ void PiuCodeSearch(PiuCode* self, uint32_t size)
PiuCodeOffsetToColumnLine(self, result->to, &result->toColumn, &result->toLine);
result->from = fxUTF8ToUnicodeOffset(string, result->from);
result->to = fxUTF8ToUnicodeOffset(string, result->to);
itemCount++;
// itemCount++;
}
(*self)->resultsSize = itemSize;
}
Expand Down
4 changes: 2 additions & 2 deletions xs/sources/xsSyntaxical.c
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ void fxImport(txParser* parser)

void fxSpecifiers(txParser* parser)
{
txInteger aCount = 0;
// txInteger aCount = 0;
fxMatchToken(parser, XS_TOKEN_LEFT_BRACE);
while (gxTokenFlags[parser->token] & XS_TOKEN_IDENTIFIER_NAME) {
fxPushSymbol(parser, parser->symbol);
Expand All @@ -1065,7 +1065,7 @@ void fxSpecifiers(txParser* parser)
else
fxPushNULL(parser);
fxPushNodeStruct(parser, 2, XS_TOKEN_SPECIFIER, parser->line);
aCount++;
// aCount++;
if (parser->token != XS_TOKEN_COMMA)
break;
fxGetNextToken(parser);
Expand Down

0 comments on commit abfbf1b

Please sign in to comment.