From 3ec92b0eded755fe9e1965c6300385effdf733cf Mon Sep 17 00:00:00 2001
From: Nat Goodspeed <nat@lindenlab.com>
Date: Fri, 18 Oct 2019 11:54:05 -0400
Subject: [PATCH] DRTVWR-476: Seems gcc 4.8 forbids brace-init of reference
 vars.

Although this is legal, apparently there was a bug in the C++11 standard (to
which gcc 4.8 conforms) that was subsequently fixed in the standard (and thus
in gcc 4.9). Thanks Henri Beauchamp.
---
 indra/llcommon/lleventcoro.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/indra/llcommon/lleventcoro.cpp b/indra/llcommon/lleventcoro.cpp
index bc7f947be12..b374c9fa047 100644
--- a/indra/llcommon/lleventcoro.cpp
+++ b/indra/llcommon/lleventcoro.cpp
@@ -137,7 +137,7 @@ LLBoundListener postAndSuspendSetup(const std::string& callerName,
     // listen on the specified LLEventPump with a lambda that will assign a
     // value to the promise, thus fulfilling its future
     llassert_always_msg(replyPumpP, ("replyPump required for " + callerName));
-    LLEventPump& replyPump{replyPumpP.getPump()};
+    LLEventPump& replyPump(replyPumpP.getPump());
     LLBoundListener connection(
         replyPump.listen(
             listenerName,
@@ -163,7 +163,7 @@ LLBoundListener postAndSuspendSetup(const std::string& callerName,
     // skip the "post" part if requestPump is default-constructed
     if (requestPumpP)
     {
-        LLEventPump& requestPump{requestPumpP.getPump()};
+        LLEventPump& requestPump(requestPumpP.getPump());
         // If replyPumpNamePath is non-empty, store the replyPump name in the
         // request event.
         LLSD modevent(event);
-- 
GitLab