summaryrefslogtreecommitdiff
path: root/stdio.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 /stdio.c
parent6a2d72af1ac550f5050eeac0be25734c206b9512 (diff)
move type test objects to file scope, remove need for (void)foo to avoid warnings on unused variables
Diffstat (limited to 'stdio.c')
-rw-r--r--stdio.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/stdio.c b/stdio.c
index cf5d6ac..49a0a3b 100644
--- a/stdio.c
+++ b/stdio.c
@@ -2,15 +2,12 @@
#include "_stdio.h"
#include "test.h"
+FILE *test_file;
+fpos_t test_fpos;
+size_t test_size;
+
void test_stdio_h(void)
{
- FILE *file;
- fpos_t fpos;
- size_t size;
- (void)file;
- (void)fpos;
- (void)size;
-
int buftypes[] = {
_IOFBF,
_IOLBF,