Skip to content

Conversation

@sgzGary
Copy link

@sgzGary sgzGary commented Sep 25, 2024

I meet problems like this when I use clang:
[ 109s] trace-hooks.c:135:5: error: call to undeclared function 'warning'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
[ 109s] 135 | warning("unknown flag %c\n", flags[i]);
[ 109s] | ^
[ 109s] trace-hooks.c:152:2: error: call to undeclared function 'warning'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
[ 109s] 152 | warning("Invalid hook format '%s'", arg);
[ 109s] | ^
[ 109s] 2 errors generated.
And after this problem is solved, this problem will also occur in other packages. I have added void warning(const char *fmt,...); in all packages where this problem occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant