summaryrefslogtreecommitdiff
path: root/wchar.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 /wchar.c
parent6a2d72af1ac550f5050eeac0be25734c206b9512 (diff)
move type test objects to file scope, remove need for (void)foo to avoid warnings on unused variables
Diffstat (limited to 'wchar.c')
-rw-r--r--wchar.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/wchar.c b/wchar.c
index 525d562..137e218 100644
--- a/wchar.c
+++ b/wchar.c
@@ -3,19 +3,14 @@
#include "_wchar.h"
#include "test.h"
+wchar_t test_wchar;
+size_t test_size;
+mbstate_t test_mbstate;
+wint_t test_wint;
+struct tm *test_tm;
+
void test_wchar_h(void)
{
- wchar_t wchar;
- size_t size;
- mbstate_t mbstate;
- wint_t wint;
- struct tm *tm;
- (void)wchar;
- (void)size;
- (void)mbstate;
- (void)wint;
- (void)tm;
-
testing_header("wchar.h");
test_true(NULL == 0);