From ebac15cb047bfc82d359a679d4bc53a37028ad6a Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Sat, 14 Aug 2021 07:24:40 +0000 Subject: copy all autotools compiler warnings to meson build --- meson-cc-tests/check-unused-result.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 meson-cc-tests/check-unused-result.c (limited to 'meson-cc-tests') diff --git a/meson-cc-tests/check-unused-result.c b/meson-cc-tests/check-unused-result.c new file mode 100644 index 000000000..ce7279ec8 --- /dev/null +++ b/meson-cc-tests/check-unused-result.c @@ -0,0 +1,9 @@ +__attribute__((__warn_unused_result__)) void f (void) {} +__attribute__((__warn_unused_result__)) int g; + +int main(int c, char **v) +{ + (void)c; + (void)v; + return 0; +} -- cgit v1.2.1