Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix error support clang #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix error support clang #22

wants to merge 1 commit into from

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