mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-19 05:41:00 +00:00
Fix incompatible pointer type warnings
The warnings looked like this:
htmlparse.c: In function ‘yyparse’:
htmlparse.c:1810:18: warning: passing argument 1 of ‘yyerror’ from incompatible pointer type [-Wincompatible-pointer-types]
htmlparse.y:40:13: note: expected ‘PyObject ** {aka struct _object **}’ but argument is of type ‘PyObject * {aka struct _object *}’
htmlparse.c:1927:12: warning: passing argument 1 of ‘yyerror’ from incompatible pointer type [-Wincompatible-pointer-types]
htmlparse.y:40:13: note: expected ‘PyObject ** {aka struct _object **}’ but argument is of type ‘PyObject * {aka struct _object *}’
The argument is not used, so it doesn't really matter what pointer type
it is.
This commit is contained in:
parent
d8efc82519
commit
fb1debaa68
2 changed files with 2 additions and 2 deletions
|
|
@ -102,7 +102,7 @@ extern int yyget_lineno(void*);
|
|||
#define YYERROR_VERBOSE 1
|
||||
|
||||
/* standard error reporting, indicating an internal error */
|
||||
static void yyerror (YYSTYPE *locp, char const *msg) {
|
||||
static void yyerror (void *locp, char const *msg) {
|
||||
fprintf(stderr, "htmlsax: internal parse error: %s\n", msg);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ extern int yyget_lineno(void*);
|
|||
#define YYERROR_VERBOSE 1
|
||||
|
||||
/* standard error reporting, indicating an internal error */
|
||||
static void yyerror (YYSTYPE *locp, char const *msg) {
|
||||
static void yyerror (void *locp, char const *msg) {
|
||||
fprintf(stderr, "htmlsax: internal parse error: %s\n", msg);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue