Skip to content

Commit

Permalink
StdLib/LibC/Stdio: fix "missing braces around initializer"
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15786 6f19259b-4bc3-4df7-8a09-765794883524
  • Loading branch information
Laszlo Ersek authored and jljusten committed Aug 11, 2014
1 parent 599aa11 commit 6f347d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion StdLib/LibC/Stdio/vswscanf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6f347d0

Please sign in to comment.