From 17679f331403b2d9af84bb4d107bc0ae1f3373f3 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 25 Sep 2020 14:24:55 -0400 Subject: move type test objects to file scope, remove need for (void)foo to avoid warnings on unused variables --- stddef.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'stddef.c') diff --git a/stddef.c b/stddef.c index 575881d..43ab2d8 100644 --- a/stddef.c +++ b/stddef.c @@ -6,18 +6,14 @@ struct s { char b; }; +ptrdiff_t test_ptrdiff; +size_t test_size; +wchar_t test_wchar; + void test_stddef_h(void) { - ptrdiff_t ptrdiff; - size_t size; - wchar_t wchar; - static struct s the_s; - (void)ptrdiff; - (void)size; - (void)wchar; - testing_header("stddef.h"); test_true(NULL == 0); -- cgit v1.2.1