commit | 9602c651c220979eeb41ad23598304579a52e2a0 | [log] [tgz] |
---|---|---|
author | Daniel Leung <daniel.leung@intel.com> | Tue Dec 10 20:20:08 2019 -0800 |
committer | Maureen Helm <maureen.helm@nxp.com> | Thu Dec 12 11:14:44 2019 -0600 |
tree | eda5aa876f3fc25159d087cb048b13c1680b727f | |
parent | 32e3756d66334d5cbb958ca148e23e981687b03a [diff] |
json: fix unnamed fields in initializers for GCC < 4.6 The unnamed unions inside json_obj_descr struct causes issues with the initializer macros due to bug described here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676 The issue is that for GCC < 4.6, it cannot handle unnamed fields in initializers. So apply the workarounds described in the bug report. Signed-off-by: Daniel Leung <daniel.leung@intel.com>