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.9.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.9.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.9.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.9.inc b/meta/recipes-devtools/gcc/gcc-4.9.inc index 691ba5fbc2..95b553cb87 100644 --- a/meta/recipes-devtools/gcc/gcc-4.9.inc +++ b/meta/recipes-devtools/gcc/gcc-4.9.inc | |||
@@ -80,6 +80,7 @@ SRC_URI = "\ | |||
80 | file://0062-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch \ | 80 | file://0062-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch \ |
81 | file://0063-nativesdk-gcc-support.patch \ | 81 | file://0063-nativesdk-gcc-support.patch \ |
82 | file://0064-handle-target-sysroot-multilib.patch \ | 82 | file://0064-handle-target-sysroot-multilib.patch \ |
83 | file://0065-gcc-483-universal-initializer-no-warning.patch \ | ||
83 | " | 84 | " |
84 | SRC_URI[md5sum] = "6f831b4d251872736e8e9cc09746f327" | 85 | SRC_URI[md5sum] = "6f831b4d251872736e8e9cc09746f327" |
85 | SRC_URI[sha256sum] = "2332b2a5a321b57508b9031354a8503af6fdfb868b8c1748d33028d100a8b67e" | 86 | SRC_URI[sha256sum] = "2332b2a5a321b57508b9031354a8503af6fdfb868b8c1748d33028d100a8b67e" |