git: 880865783d9c - main - pmc(8): revert unnecessary lvalue reference change from prior commit
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 10 Aug 2026 01:42:11 UTC
The branch main has been updated by ngie:
URL: https://cgit.FreeBSD.org/src/commit/?id=880865783d9c3b807a26f4ea8ab3ef6ce1ca6ff8
commit 880865783d9c3b807a26f4ea8ab3ef6ce1ca6ff8
Author: Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2026-08-10 01:39:58 +0000
Commit: Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-08-10 01:42:07 +0000
pmc(8): revert unnecessary lvalue reference change from prior commit
I need to do more work before references can be accepted in other
sections of the code. This was an unnecessary drive-by change that was
not tested in `make universe`.
Reported by: CI
Fixes: fd809148 ("pmc(8): resolve -Wshadow issues")
---
usr.sbin/pmc/view.hh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr.sbin/pmc/view.hh b/usr.sbin/pmc/view.hh
index 9a0702c08803..b1e04a73e130 100644
--- a/usr.sbin/pmc/view.hh
+++ b/usr.sbin/pmc/view.hh
@@ -73,7 +73,7 @@ struct pmcinfo
struct pmcinfox
{
pmcinfox() : rate(0), event() { }
- pmcinfox(uint32_t rate_, std::string &event_) : rate(rate_), event(event_) { }
+ pmcinfox(uint32_t rate_, std::string event_) : rate(rate_), event(event_) { }
~pmcinfox() { }
uint32_t rate;
std::string event;