diff --git a/src/perf/reader.cpp b/src/perf/reader.cpp index 2b7b6ee9..f176b700 100644 --- a/src/perf/reader.cpp +++ b/src/perf/reader.cpp @@ -231,7 +231,8 @@ void SysfsEvent::set_availability() } } -TimeEvent::TimeEvent(bool enable_on_exec, uint64_t addr) : PerfEvent(enable_on_exec) +TimeEvent::TimeEvent(bool enable_on_exec, [[maybe_unused]] uint64_t addr) +: PerfEvent(enable_on_exec) { attr_.exclude_kernel = 1; @@ -268,9 +269,11 @@ RawEvent::RawEvent(bool enable_on_exec) : PerfEvent(enable_on_exec) PerfEventInstance PerfEvent::open(std::variant location, int group_fd, int cgroup_fd) { return PerfEventInstance(*this, location, group_fd, cgroup_fd); -}; +} -PerfEventInstance::PerfEventInstance() : fd_(-1){}; +PerfEventInstance::PerfEventInstance() : fd_(-1) +{ +} PerfEventInstance::PerfEventInstance(PerfEvent& ev, std::variant location, int group_fd, int cgroup_fd)