[Qemu-devel] [PATCH v3 0/2] Force the C standard to gnu99

Thomas Huth posted 2 patches 5 years, 2 months ago
Test asan passed
Test docker-mingw@fedora passed
Test checkpatch passed
Test docker-clang@ubuntu passed
Test docker-quick@centos7 passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1547051976-13982-1-git-send-email-thuth@redhat.com
Maintainers: "Cédric Le Goater" <clg@kaod.org>, David Gibson <david@gibson.dropbear.id.au>
There is a newer version of this series
configure                   | 5 ++++-
include/hw/ppc/spapr.h      | 4 ++--
include/hw/ppc/spapr_xive.h | 2 +-
include/hw/ppc/xics.h       | 4 ++--
4 files changed, 9 insertions(+), 6 deletions(-)
[Qemu-devel] [PATCH v3 0/2] Force the C standard to gnu99
Posted by Thomas Huth 5 years, 2 months ago
Different versions of GCC and Clang use different versions of the C
standard by default. To avoid compilation problems with different
compilers in the future, we should enforce one language level
for all compilers. Since "gnu99" is the only usable option right now
(later versions are still marked as experimental in GCC v4.8),
we enforce compiling with -std=gnu99 now (in the second patch).
This caused some new warnings/erros to appear with clang, which are
fixed by the first patch now.

Thomas Huth (2):
  include/hw/ppc: Fix compilation with clang -std=gnu99
  configure: Force the C standard to gnu99

 configure                   | 5 ++++-
 include/hw/ppc/spapr.h      | 4 ++--
 include/hw/ppc/spapr_xive.h | 2 +-
 include/hw/ppc/xics.h       | 4 ++--
 4 files changed, 9 insertions(+), 6 deletions(-)

-- 
1.8.3.1