]> code.ossystems Code Review - openembedded-core.git/commit
gcc-4.x: fix wrong warning when using the universal zero initializer {0}
authorKai Kang <kai.kang@windriver.com>
Sat, 10 Oct 2015 07:27:07 +0000 (15:27 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 19 Oct 2015 16:47:06 +0000 (17:47 +0100)
commitef16c20e6936218ff96c599cce0200c34f5017dd
tree75f3a2b211a1c50151af5f2a237546f71b92ca34
parentcea4f6b86129f84a99700207777929bf7e811ed6
gcc-4.x: fix wrong warning when using the universal zero initializer {0}

When I upgrade efivar to 0.21, it fails to compile with error messages:

| linux.c:850:9: error: missing braces around initializer
[-Werror=missing-braces]
|   struct ifreq ifr = { 0, };
|          ^

It is a known issue of gcc. Backport patch from

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119

to fix wrong warning when using the universal zero initializer {0}.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/gcc/gcc-4.8.inc
meta/recipes-devtools/gcc/gcc-4.8/0051-gcc-483-universal-initializer-no-warning.patch [new file with mode: 0644]
meta/recipes-devtools/gcc/gcc-4.9.inc
meta/recipes-devtools/gcc/gcc-4.9/0065-gcc-483-universal-initializer-no-warning.patch [new file with mode: 0644]