From e62d6915dba4b2f26ea1c8052c58254e7d602523 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 2 Feb 2024 19:28:55 -0600 Subject: [PATCH] Fix -Wreturn-local-addr warning in event_t::view() --- src/thread_safe.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread_safe.h b/src/thread_safe.h index f4713bcf..1135c441 100644 --- a/src/thread_safe.h +++ b/src/thread_safe.h @@ -82,7 +82,7 @@ namespace safe { } // pop and view should not be used interchangeably - const status_t & + status_t view() { std::unique_lock ul { _lock };