diff options
author | Kai Kang <kai.kang@windriver.com> | 2015-10-10 15:27:07 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-19 17:47:06 +0100 |
commit | ef16c20e6936218ff96c599cce0200c34f5017dd (patch) | |
tree | 75f3a2b211a1c50151af5f2a237546f71b92ca34 /meta/recipes-devtools/gcc/gcc-4.8.inc | |
parent | cea4f6b86129f84a99700207777929bf7e811ed6 (diff) | |
download | openembedded-core-contrib-ef16c20e6936218ff96c599cce0200c34f5017dd.tar.gz |
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>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.8.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.8.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.8.inc b/meta/recipes-devtools/gcc/gcc-4.8.inc index 6a2454d868..b3e1c332ee 100644 --- a/meta/recipes-devtools/gcc/gcc-4.8.inc +++ b/meta/recipes-devtools/gcc/gcc-4.8.inc @@ -69,6 +69,7 @@ SRC_URI = "\ file://0047-repomembug.patch \ file://0049-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch \ file://target-gcc-includedir.patch \ + file://0051-gcc-483-universal-initializer-no-warning.patch \ " SRC_URI[md5sum] = "5a84a30839b2aca22a2d723de2a626ec" SRC_URI[sha256sum] = "4a80aa23798b8e9b5793494b8c976b39b8d9aa2e53cd5ed5534aff662a7f8695" |