summaryrefslogtreecommitdiff
path: root/stddef.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-09-25 14:24:55 -0400
committerJakob Kaivo <jkk@ung.org>2020-09-25 14:24:55 -0400
commit17679f331403b2d9af84bb4d107bc0ae1f3373f3 (patch)
treed47fe3a08bfc5ade912a35642e9a830dc8f28eee /stddef.c
parent6a2d72af1ac550f5050eeac0be25734c206b9512 (diff)
move type test objects to file scope, remove need for (void)foo to avoid warnings on unused variables
Diffstat (limited to 'stddef.c')
-rw-r--r--stddef.c12
1 files changed, 4 insertions, 8 deletions
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);