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

bcc: Use -Werror=undef #5089

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

Conversation

ShawnZhong
Copy link
Contributor

@ShawnZhong ShawnZhong commented Aug 24, 2024

Fix #5019

@Bojun-Seo
Copy link
Contributor

How about adding some explanation about this commit in the commit message?
You can write the whole reason in it, or you can just leave a link like this PR description.
(e.g. Fix https://github.com/iovisor/bcc/issues/5019)
I prefer the former by the way.

@@ -36,15 +36,15 @@ Location::Location(uint64_t addr, const std::string &bin_path, const char *arg_f
: address_(addr),
bin_path_(bin_path) {

#ifdef __aarch64__
#if defined(__aarch64__)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary to change #ifdef A into #if defined(A) ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree. ifdef -> defined(...) change seems unnecessary.

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.

Use -Werror=undef when compiling bcc to catch issues when a macro is not defined.
3 participants