commit | f628dcd83b35f3bcebf2e810f5eadd6813dc0519 | [log] [tgz] |
---|---|---|
author | Stephanos Ioannidis <root@stephanos.io> | Wed Sep 11 18:09:49 2019 +0900 |
committer | Anas Nashif <anas.nashif@intel.com> | Sat Sep 21 10:46:21 2019 -0400 |
tree | 5931bc74d108802dae2eedfa161add8adb8db427 | |
parent | 110526ec0ef8ff1d6e72a2cd7330b9b951148697 [diff] |
kernel: Fix _K_QUEUE_INITIALIZER portability issue. _K_QUEUE_INITIALIZER macro provides initialisation for k_queue struct, which contains an anonymous union. Older versions of GCC (<= 4.5), even when compiling with -std=gnu99, do not allow specifying members of an anonymous union without braces in an initialiser, so it is necessary to add braces around anonymous union members. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>