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:57:57 +0100 |
commit | b1a740568864762cef5d2427cf65103448bbcf42 (patch) | |
tree | 304d010a619e8e4a7ebcc4d9f574fc6f6be40005 /meta/recipes-devtools/gcc/gcc-4.8.inc | |
parent | 402723ead0b07255497bc137327f2aac0f6c74b0 (diff) | |
download | poky-b1a740568864762cef5d2427cf65103448bbcf42.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}.
(From OE-Core rev: ef16c20e6936218ff96c599cce0200c34f5017dd)
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 = "\ | |||
69 | file://0047-repomembug.patch \ | 69 | file://0047-repomembug.patch \ |
70 | file://0049-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch \ | 70 | file://0049-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch \ |
71 | file://target-gcc-includedir.patch \ | 71 | file://target-gcc-includedir.patch \ |
72 | file://0051-gcc-483-universal-initializer-no-warning.patch \ | ||
72 | " | 73 | " |
73 | SRC_URI[md5sum] = "5a84a30839b2aca22a2d723de2a626ec" | 74 | SRC_URI[md5sum] = "5a84a30839b2aca22a2d723de2a626ec" |
74 | SRC_URI[sha256sum] = "4a80aa23798b8e9b5793494b8c976b39b8d9aa2e53cd5ed5534aff662a7f8695" | 75 | SRC_URI[sha256sum] = "4a80aa23798b8e9b5793494b8c976b39b8d9aa2e53cd5ed5534aff662a7f8695" |