]> Git Repo - qemu.git/commit
target/s390x: Fix brace Werror with clang 6.0.0
authorRichard Henderson <[email protected]>
Sat, 12 May 2018 04:59:43 +0000 (21:59 -0700)
committerCornelia Huck <[email protected]>
Mon, 14 May 2018 15:10:02 +0000 (17:10 +0200)
commitb0dad618baad1efb014c88f4507492a79f2eaf1c
treeeb30878ba66db312269f2263638031129f9edcb6
parenta30fb811cbe940020a498d2cdac9326cac38b4d9
target/s390x: Fix brace Werror with clang 6.0.0

The warning is

target/s390x/misc_helper.c:209:21: error: suggest
      braces around initialization of subobject [-Werror,-Wmissing-braces]
    SysIB sysib = { 0 };
                    ^
                    {}

While the original code is correct, and technically exactly correct
as per ISO C89, both GCC and Clang support plain empty set of braces
as an extension.

Cc: Alexander Graf <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Cornelia Huck <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
Message-Id: <20180512045950[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Signed-off-by: Cornelia Huck <[email protected]>
target/s390x/misc_helper.c
This page took 0.025764 seconds and 4 git commands to generate.