[llvm] r231387 - Silence -Wmissing-braces warning from clang-cl
Reid Kleckner
reid at kleckner.net
Thu Mar 5 10:26:58 PST 2015
Author: rnk
Date: Thu Mar 5 12:26:58 2015
New Revision: 231387
URL: http://llvm.org/viewvc/llvm-project?rev=231387&view=rev
Log:
Silence -Wmissing-braces warning from clang-cl
The first element of STACKFRAME64 is a struct and Clang wants us to put
braces around it's initialization. Instead, drop the zero. The result
should be the same.
Modified:
llvm/trunk/lib/Support/Windows/Signals.inc
Modified: llvm/trunk/lib/Support/Windows/Signals.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/Signals.inc?rev=231387&r1=231386&r2=231387&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/Signals.inc (original)
+++ llvm/trunk/lib/Support/Windows/Signals.inc Thu Mar 5 12:26:58 2015
@@ -383,7 +383,7 @@ void sys::PrintStackTraceOnErrorSignal()
void llvm::sys::PrintStackTrace(FILE *File) {
- STACKFRAME64 StackFrame = {0};
+ STACKFRAME64 StackFrame = {};
CONTEXT Context = {0};
::RtlCaptureContext(&Context);
#if defined(_M_X64)
More information about the llvm-commits
mailing list