[compiler-rt] r270697 - Fix braced initializer list (NFC)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Wed May 25 06:58:55 PDT 2016
Author: tejohnson
Date: Wed May 25 08:58:54 2016
New Revision: 270697
URL: http://llvm.org/viewvc/llvm-project?rev=270697&view=rev
Log:
Fix braced initializer list (NFC)
After r270617 I am getting an error when building:
projects/compiler-rt/lib/profile/InstrProfilingFile.c:33:36:
error: missing field 'PidChars' initializer
[-Werror,-Wmissing-field-initializers]
lprofFilename lprofCurFilename = {0};
^
Fix the aggregate initializer.
Modified:
compiler-rt/trunk/lib/profile/InstrProfilingFile.c
Modified: compiler-rt/trunk/lib/profile/InstrProfilingFile.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingFile.c?rev=270697&r1=270696&r2=270697&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingFile.c (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingFile.c Wed May 25 08:58:54 2016
@@ -30,7 +30,7 @@ typedef struct lprofFilename {
unsigned NumHosts;
} lprofFilename;
-lprofFilename lprofCurFilename = {0};
+lprofFilename lprofCurFilename = {0, {0}, {0}, 0, 0};
int getpid(void);
static int getCurFilenameLength();
More information about the llvm-commits
mailing list