diff options
author | Laszlo Ersek <lersek@redhat.com> | 2014-08-11 22:00:01 +0000 |
---|---|---|
committer | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-08-11 22:00:01 +0000 |
commit | 6f347d0f0a0db643c5ec134481aeab0232127ae2 (patch) | |
tree | 894e730e0f4049691e3b86e567d0fb63acdbecf1 /StdLib | |
parent | 599aa11f870264f6d86f3e1451afb6de07be1758 (diff) | |
download | edk2-platforms-6f347d0f0a0db643c5ec134481aeab0232127ae2.tar.xz |
StdLib/LibC/Stdio: fix "missing braces around initializer"
The member "fext._ub" is a structure (of type "struct __sbuf"), and the
current initializer triggers
StdLib/LibC/Stdio/vswscanf.c: In function 'vswscanf':
StdLib/LibC/Stdio/vswscanf.c:75:10: error: missing braces around
initializer [-Werror=missing-braces]
StdLib/LibC/Stdio/vswscanf.c:75:10: error: (near initialization for
'fext._ub') [-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@15786 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'StdLib')
-rw-r--r-- | StdLib/LibC/Stdio/vswscanf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/StdLib/LibC/Stdio/vswscanf.c b/StdLib/LibC/Stdio/vswscanf.c index 3f62666652..254f0b224a 100644 --- a/StdLib/LibC/Stdio/vswscanf.c +++ b/StdLib/LibC/Stdio/vswscanf.c @@ -72,7 +72,7 @@ vswscanf( size_t mlen;
int r;
const wchar_t *rstr = str;
- struct __sfileext fext = { 0 };
+ struct __sfileext fext = { { 0 } };
/*
* XXX Convert the wide character string to multibyte, which
|