[PATCH] D19623: [libc++] Initialize local doubles to 0.0.
Stephan T. Lavavej via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 27 14:31:45 PDT 2016
STL_MSFT created this revision.
STL_MSFT added reviewers: EricWF, mclow.lists.
STL_MSFT added a subscriber: cfe-commits.
[libc++] Initialize local doubles to 0.0.
(Zero is a strict subset of garbage.)
Fixes MSVC "warning C4701: potentially uninitialized local variable 'meow' used".
http://reviews.llvm.org/D19623
Files:
test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/eval.pass.cpp
test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/eval_param.pass.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19623.55321.patch
Type: text/x-patch
Size: 3372 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160427/f8452117/attachment.bin>
More information about the cfe-commits
mailing list