Fix clang warnings
This commit is contained in:
parent
dc789353fd
commit
67a5cabb3c
@ -5674,7 +5674,7 @@ static void compound(int stmt_sameline,int starttok)
|
|||||||
error(30,block_start); /* compound block not closed at end of file */
|
error(30,block_start); /* compound block not closed at end of file */
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
if (count_stmt>0 && isterminal(lastst))
|
if (count_stmt>0 && isterminal(lastst)) {
|
||||||
if (matchtoken(tLABEL)) {
|
if (matchtoken(tLABEL)) {
|
||||||
cell val;
|
cell val;
|
||||||
char *name;
|
char *name;
|
||||||
@ -5690,6 +5690,7 @@ static void compound(int stmt_sameline,int starttok)
|
|||||||
} else {
|
} else {
|
||||||
error(225); /* unreachable code */
|
error(225); /* unreachable code */
|
||||||
} /* if */
|
} /* if */
|
||||||
|
} /* if */
|
||||||
statement(&indent,TRUE); /* do a statement */
|
statement(&indent,TRUE); /* do a statement */
|
||||||
count_stmt++;
|
count_stmt++;
|
||||||
} /* if */
|
} /* if */
|
||||||
|
@ -608,9 +608,9 @@ static int stripcomment(unsigned char *line)
|
|||||||
} else {
|
} else {
|
||||||
if (incommand==2 && *line>' ') {
|
if (incommand==2 && *line>' ') {
|
||||||
/* line starting a command, may need raw strings */
|
/* line starting a command, may need raw strings */
|
||||||
if (strncmp(line, "#error", 6)==0 ||
|
if (strncmp((char*)line,"#error",6)==0 ||
|
||||||
strncmp(line, "#warning", 8)==0 ||
|
strncmp((char*)line,"#warning",8)==0 ||
|
||||||
strncmp(line, "#pragma", 7)==0) {
|
strncmp((char*)line,"#pragma",7)==0) {
|
||||||
/* is one of the pre-processor commands with pure raw strings */
|
/* is one of the pre-processor commands with pure raw strings */
|
||||||
incommand=1;
|
incommand=1;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user