You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In LLVM 16, -Wincompatible-function-pointer types has been upgraded to an error
by default. The functional change in this PR is to update test_implicit_func
to incorporate this. (Currently it accepts either an error or a warning to avoid a complex DEPS roll).
I also minimized the test to only test the behavior that is unique to emscripten (namely, the fact that
-Wimplicit-function-declaration is an error in gnu89 mode rather than a warning as it is upstream).
printf("hello %d\n", strnlen("waka", 2)); // Implicit declaration, no header, for strnlen
3986
-
int (*my_strnlen)(char*, ...) = strnlen;
3987
-
printf("hello %d\n", my_strnlen("shaka", 2));
3988
-
return 0;
3989
-
}
3990
-
''')
3991
-
3992
-
IMPLICIT_WARNING="warning: implicit declaration of function 'strnlen' is invalid in C99"
3993
-
IMPLICIT_WARNING_NEW="warning: call to undeclared function 'strnlen'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]"
3994
-
3995
-
IMPLICIT_ERROR="error: implicit declaration of function 'strnlen' is invalid in C99"
3996
-
IMPLICIT_ERROR_NEW="error: call to undeclared function 'strnlen'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]"
3997
-
3998
-
INCOMPATIBLE_WARNINGS= ('warning: incompatible pointer types', 'warning: incompatible function pointer types')
0 commit comments