From c78ab62227086bbd8628373a550e128adcd1ead7 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 15 Jan 2023 18:10:36 -0800 Subject: [PATCH] modules/client/rooms/context: Fix -Wdangling-pointer to an unnamed temporary (gcc-12). --- modules/client/rooms/context.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/client/rooms/context.cc b/modules/client/rooms/context.cc index 025d125c5..0f92c5b6c 100644 --- a/modules/client/rooms/context.cc +++ b/modules/client/rooms/context.cc @@ -55,7 +55,7 @@ get__context(client &client, url::decode(event_id, request.parv[2]) }; - const auto &limit + const auto limit { std::min(request.query.get("limit", default_limit), size_t(limit_max)) };