-
Notifications
You must be signed in to change notification settings - Fork 582
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
Misc fix #215
base: master
Are you sure you want to change the base?
Misc fix #215
Conversation
chenhengqi
commented
May 3, 2021
•
edited
Loading
edited
- code cleanup(comments, unused codes, indention etc.)
- sync with latest libbpf, replace deprecated API usage and fix memory leak.
Please drop the first commit; it's a tutorial, so it's not really supposed to |
Signed-off-by: Hengqi Chen <chenhengqi@outlook.com>
Signed-off-by: Hengqi Chen <chenhengqi@outlook.com>
Signed-off-by: Hengqi Chen <chenhengqi@outlook.com>
Done. But it's strange that everyone cloning this repo has to resolve the compilation error before getting a successful build. |
Hengqi Chen ***@***.***> writes:
Done.
But it's strange that everyone cloning this repo has to resolve the
compilation error before getting a successful build.
It builds just fine on my system. I think maybe your compiler is picking
up that -Wunused-but-set-variable from some system-wide setting? We
don't set it in any of the Makefiles in the repository...
|
I use clang-13, it fails. (clang 11/12 works fine.) |
Hengqi Chen ***@***.***> writes:
I use clang-13, it fails. (clang 11/12 works fine.)
Ah, so a new default, maybe? Could you please check if it helps to add
-Wno-unused-but-set-variable to common.mk ?
|
I believe it's a new flag in clang, no Google search results and documents for it currently. It doesn't work in clang-12.
|
Hengqi Chen ***@***.***> writes:
I believe it's a new flag in clang, no Google search results and
documents for it currently.
Ah, that's because it has been backed out:
llvm/llvm-project@6d8d133
|
Toke Høiland-Jørgensen ***@***.***> writes:
Hengqi Chen ***@***.***> writes:
> I believe it's a new flag in clang, no Google search results and
> documents for it currently.
Ah, that's because it has been backed out:
llvm/llvm-project@6d8d133
Seems like it may come back, though: https://reviews.llvm.org/D100581
Does it get rid of the warning if you replace '-Wno-unused-value' with
'-Wno-unused' in common.mk?
|
I update to the latest nightly version, no complaints now. How about just forget it and come back when it lands or clang-13 release ? |
Hengqi Chen ***@***.***> writes:
I update to the latest nightly version, no complaints now.
How about just forget it and come back when it lands or clang-13
release ?
Fine with me :)
|