[iscsictl] Fix compile issues that creep up with gcc-6.4
This fixes two warnings: * double-definition of a symbol in a yacc header * Comparison of an unsigned int being >= 0; that's always going to be true. Reviewed by: imp, rscheff Differential Revision: https://reviews.freebsd.org/D27036
This commit is contained in:
parent
8faaaf3325
commit
2a7996c7f3
@ -54,7 +54,6 @@ static struct conf *conf;
|
||||
static struct target *target;
|
||||
|
||||
extern void yyerror(const char *);
|
||||
extern int yylex(void);
|
||||
extern void yyrestart(FILE *);
|
||||
|
||||
%}
|
||||
@ -359,7 +358,7 @@ pcp: PCP EQUALS STR
|
||||
free($3);
|
||||
return(1);
|
||||
}
|
||||
if (!((tmp >=0) && (tmp <= 7))) {
|
||||
if (tmp > 7) {
|
||||
yyerror("invalid pcp value");
|
||||
return(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user