From 9db297bf2fcf7f202f4abef69edf46fac5888f2d Mon Sep 17 00:00:00 2001 From: Michael Lee Date: Tue, 25 Oct 2016 09:45:49 -0700 Subject: [PATCH] Fix maybe-uninitialized warning in Conv.h Summary: Some compilers think result may be uninitialized Reviewed By: francis-ma Differential Revision: D4074526 fbshipit-source-id: 5df4568cfa5eb8f3b2993a82b831fd5e4028a281 --- folly/Conv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/Conv.h b/folly/Conv.h index 890b2592..90d7d84f 100644 --- a/folly/Conv.h +++ b/folly/Conv.h @@ -1490,7 +1490,7 @@ Expected> tryTo(StringPiece* src) { template Tgt to(StringPiece* src) { - Tgt result; + Tgt result{}; using Error = detail::ParseToError; return parseTo(*src, result) .thenOrThrow( -- 2.34.1