File chromium-86-nearby-explicit.patch of Package chromium-ffmpeg-extra (Revision 4407c879c2f3d7778ebd138b74f5810a)

Currently displaying revision 4407c879c2f3d7778ebd138b74f5810a , Show latest

26
 
1
From 849e5c6b3a8746d9205102bd3df4e140cead405a Mon Sep 17 00:00:00 2001
2
From: Stephan Hartmann <stha09@googlemail.com>
3
Date: Sat, 18 Jul 2020 15:11:13 +0000
4
Subject: [PATCH] GCC: remove explicit from AtomicReference constructor
5
6
---
7
 .../nearby/src/cpp/platform/public/atomic_reference.h        | 2 +-
8
 1 file changed, 1 insertion(+), 1 deletion(-)
9
10
diff --git a/third_party/nearby/src/cpp/platform/public/atomic_reference.h b/third_party/nearby/src/cpp/platform/public/atomic_reference.h
11
index 5742724..bbb8c01 100644
12
--- a/third_party/nearby/src/cpp/platform/public/atomic_reference.h
13
+++ b/third_party/nearby/src/cpp/platform/public/atomic_reference.h
14
@@ -37,7 +37,7 @@ class AtomicReference<T, std::enable_if_t<sizeof(T) <= sizeof(std::uint32_t) &&
15
     final {
16
  public:
17
   using Platform = api::ImplementationPlatform;
18
-  explicit AtomicReference(T value)
19
+  AtomicReference(T value)
20
       : impl_(Platform::CreateAtomicUint32(static_cast<std::uint32_t>(value))) {
21
   }
22
   ~AtomicReference() = default;
23
-- 
24
2.26.2
25
26