xkbscan: resolve build warning/rpmlint error
xkbscan.l: In function 'setScanState': xkbscan.l:201:1: warning: control reaches end of non-void function I: Program returns random data in a function E: libxkbcommon no-return-in-nonvoid-function xkbscan.l:201 Change return type of setScanState to void, since a return value is never used by its callers. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>master
parent
d84da95f69
commit
f8301ebc56
|
@ -191,8 +191,8 @@ extern void yyerror(const char * /* s */
|
|||
extern int yylex(void);
|
||||
extern int yyparse(void);
|
||||
|
||||
extern int setScanState(char * /* file */ ,
|
||||
int /* line */
|
||||
extern void setScanState(char * /* file */ ,
|
||||
int /* line */
|
||||
);
|
||||
|
||||
extern FILE *yyin;
|
||||
|
|
|
@ -193,7 +193,7 @@ yyerror(const char *s)
|
|||
return;
|
||||
}
|
||||
|
||||
int setScanState(char *file, int lineno)
|
||||
void setScanState(char *file, int lineno)
|
||||
{
|
||||
yylineno = 1;
|
||||
scanFile = file;
|
||||
|
|
Loading…
Reference in New Issue