From ef0c9e476b3484591e8f5a565c476c9c537d7ec9 Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Mon, 25 Jan 2016 12:21:24 -0800 Subject: [PATCH] Initialize LifoSem's padding to allow for its constexpr constructor. Summary: MSVC correctly gives an error about the constexpr constructor not initializing all members. Reviewed By: yfeldblum Differential Revision: D2856806 fb-gh-sync-id: cef97639906dd3c39e3d3dc2ba939021e15edcb9 --- folly/LifoSem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/LifoSem.h b/folly/LifoSem.h index 4aa1cc88..030d58e0 100644 --- a/folly/LifoSem.h +++ b/folly/LifoSem.h @@ -323,7 +323,7 @@ struct LifoSemBase { /// Constructor constexpr explicit LifoSemBase(uint32_t initialValue = 0) - : head_(LifoSemHead::fresh(initialValue)) {} + : head_(LifoSemHead::fresh(initialValue)), padding_() {} LifoSemBase(LifoSemBase const&) = delete; LifoSemBase& operator=(LifoSemBase const&) = delete; -- 2.34.1