diff options
author | Laszlo Ersek <lersek@redhat.com> | 2014-08-11 21:59:53 +0000 |
---|---|---|
committer | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-08-11 21:59:53 +0000 |
commit | 599aa11f870264f6d86f3e1451afb6de07be1758 (patch) | |
tree | c2d241877a8e6467576f7a3968255e9a3dd41c74 /StdLib | |
parent | 1be8039054d81cd5e5f602a6f3cd13a062cc2900 (diff) | |
download | edk2-599aa11f870264f6d86f3e1451afb6de07be1758.zip edk2-599aa11f870264f6d86f3e1451afb6de07be1758.tar.gz edk2-599aa11f870264f6d86f3e1451afb6de07be1758.tar.bz2 |
StdLib/LibC/gdtoa: fix "missing braces around initializer"
The member "u.L" is an array, and the current initializer triggers
StdLib/LibC/gdtoa/strtof.c: In function '_strtof':
StdLib/LibC/gdtoa/strtof.c:53:9: error: missing braces around
initializer [-Werror=missing-braces]
StdLib/LibC/gdtoa/strtof.c:53:9: error: (near initialization for
'u.L') [-Werror=missing-braces]
cc1: all warnings being treated as errors
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15785 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'StdLib')
-rw-r--r-- | StdLib/LibC/gdtoa/strtof.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/StdLib/LibC/gdtoa/strtof.c b/StdLib/LibC/gdtoa/strtof.c index 44a4cb3..3b4b52c 100644 --- a/StdLib/LibC/gdtoa/strtof.c +++ b/StdLib/LibC/gdtoa/strtof.c @@ -50,7 +50,7 @@ strtof(CONST char *s, char **sp) ULong bits[1];
Long expt;
int k;
- union { ULong L[1]; float f; } u = { 0 };
+ union { ULong L[1]; float f; } u = { { 0 } };
k = strtodg(s, sp, &fpi, &expt, bits);
if (k == STRTOG_NoMemory) {
|