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 compile warning #2346

Merged
merged 1 commit into from
May 10, 2019
Merged

Fix compile warning #2346

merged 1 commit into from
May 10, 2019

Conversation

lecopzer
Copy link
Contributor

Add corresponding ifdef macro to get ride of the follow warning.

/home/lecopzer/workspace/mybcc/src/cc/bcc_debug.cc: In member function ‘void ebpf::SourceDebugger::dump()’:
/home/lecopzer/workspace/mybcc/src/cc/bcc_debug.cc:186:16: warning: unused variable ‘SectionID’ [-Wunused-variable]
unsigned SectionID = get<2>(section.second);
^~~~~~~~~

Add corresponding ifdef macro to get ride of the follow warning.

/home/lecopzer/workspace/mybcc/src/cc/bcc_debug.cc: In member function ‘void ebpf::SourceDebugger::dump()’:
/home/lecopzer/workspace/mybcc/src/cc/bcc_debug.cc:186:16: warning: unused variable ‘SectionID’ [-Wunused-variable]
       unsigned SectionID = get<2>(section.second);
                ^~~~~~~~~
@yonghong-song
Copy link
Collaborator

[buildbot, test this please]

@yonghong-song
Copy link
Collaborator

Thanks for the fix!

@yonghong-song yonghong-song merged commit e86e064 into iovisor:master May 10, 2019
brendangregg pushed a commit to brendangregg/bcc that referenced this pull request May 23, 2019
Add corresponding ifdef macro to get ride of the follow warning.

/home/lecopzer/workspace/mybcc/src/cc/bcc_debug.cc: In member function ‘void ebpf::SourceDebugger::dump()’:
/home/lecopzer/workspace/mybcc/src/cc/bcc_debug.cc:186:16: warning: unused variable ‘SectionID’ [-Wunused-variable]
       unsigned SectionID = get<2>(section.second);
                ^~~~~~~~~
palexster pushed a commit to palexster/bcc that referenced this pull request Jul 7, 2019
Add corresponding ifdef macro to get ride of the follow warning.

/home/lecopzer/workspace/mybcc/src/cc/bcc_debug.cc: In member function ‘void ebpf::SourceDebugger::dump()’:
/home/lecopzer/workspace/mybcc/src/cc/bcc_debug.cc:186:16: warning: unused variable ‘SectionID’ [-Wunused-variable]
       unsigned SectionID = get<2>(section.second);
                ^~~~~~~~~
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.

None yet

2 participants