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/classes/utils.bbclass | |
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/classes/utils.bbclass')
0 files changed, 0 insertions, 0 deletions