Loading
test: unify code to use same bracket syntax
= {0}; - first element set to zero, everything else recursively zeroed.
= {{0}}; - explicitly saying “first member, which is itself a struct/union, is {0}.”
= {}; - shorthand allowed since C23 (and as a GNU extension in GCC/Clang before that). It means “default-initialize everything”, which for structs is the same as zero-initialize.
In strict C99/C11, = {}; is not valid — you’d need = {0};.
In GNU C / Clang, = {}; has worked for ages as an extension.
In C23, = {}; is finally standard.
Change-Id: Ie91969d9df3037b143976edc88c273559e471405
Signed-off-by:
Boris Glimcher <Boris.Glimcher@emc.com>
Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/26722
Reviewed-by:
Tomasz Zawadzki <tomasz@tzawadzki.com>
Community-CI: Mellanox Build Bot
Tested-by:
SPDK Automated Test System <spdkbot@gmail.com>
Reviewed-by:
Jacek Kalwas <jacek.kalwas@nutanix.com>