diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2021-08-14 07:24:40 +0000 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2021-08-14 07:24:40 +0000 |
commit | ebac15cb047bfc82d359a679d4bc53a37028ad6a (patch) | |
tree | a27586ba3dfb87df9cb0db76a56ede1a1f9450d4 /meson-cc-tests | |
parent | 773236010f45530855c21ae16a5f69e6d7a2d43c (diff) | |
download | cairo-ebac15cb047bfc82d359a679d4bc53a37028ad6a.tar.gz |
copy all autotools compiler warnings to meson build
Diffstat (limited to 'meson-cc-tests')
-rw-r--r-- | meson-cc-tests/check-unused-result.c | 9 |
1 files changed, 9 insertions, 0 deletions
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; +} |