meson: Build header tests with -pedantic
authorJan Janssen <medhefgo@web.de>
Fri, 27 May 2022 19:15:22 +0000 (21:15 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 29 May 2022 20:06:36 +0000 (05:06 +0900)
commit5476cb988c111e91befe5cc6ff5106ce9a003645
treecc4a0ef16c85fb825838b94ac71a9b6c778d45bc
parentba780ccd5f6380bc13f9cff20b5856dfc3077ee4
meson: Build header tests with -pedantic

By using __extension__, we can silence pedantic errors we cannot or
do not want to fix.

This in particular silences:
 - enum values being outside of int range
 - variadic macros
 - long long being C99
 - type of bit-field ‘type’ is a GCC extension
 - use of C99 bool in public header functions
16 files changed:
src/systemd/meson.build
src/systemd/sd-bus-vtable.h
src/systemd/sd-bus.h
src/systemd/sd-device.h
src/systemd/sd-dhcp-client.h
src/systemd/sd-dhcp-lease.h
src/systemd/sd-dhcp-server.h
src/systemd/sd-dhcp6-client.h
src/systemd/sd-ipv4acd.h
src/systemd/sd-ipv4ll.h
src/systemd/sd-lldp-rx.h
src/systemd/sd-lldp-tx.h
src/systemd/sd-lldp.h
src/systemd/sd-ndisc.h
src/systemd/sd-path.h
src/systemd/sd-resolve.h