Skip to content

Commit

Permalink
Enable flag Wshadow (#206)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #206

Fix a `-Wshadow` issue.

Reviewed By: haowangludx, r-barnes

Differential Revision: D52214064

fbshipit-source-id: 48535158da66b25671e72294655eefe5ed7ddc11
  • Loading branch information
Benwei Shi authored and facebook-github-bot committed Jan 6, 2024
1 parent f1b6292 commit 4c93d6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hbt/src/perf_event/PmuEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ struct EventDef {
/// Create perf_event_attr config field,
/// as done in kernel's
/// linux/arch/x86/include/asm/perf_event.h macro X86_RAW_EVENT_MASK.
EventConfigs makeConfigs(uint32_t pmu_type) const {
EventConfigs makeConfigs(uint32_t new_pmu_type) const {
uint64_t config = (encoding.cmask << 24) |
(((uint64_t)encoding.inv) << 23) | (((uint64_t)encoding.any) << 21) |
(((uint64_t)encoding.edge) << 18) | (encoding.umask << 8u) |
Expand All @@ -376,7 +376,7 @@ struct EventDef {
}
}
return EventConfigs{
.type = pmu_type,
.type = new_pmu_type,
.config = config,
.config1 = config1,
.config2 = config2};
Expand Down

0 comments on commit 4c93d6a

Please sign in to comment.