summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-15 14:30:02 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-15 14:30:02 -0400
commitc7eee50c124c8b8d7be4af4bd01efed99400fb97 (patch)
tree9daaa6b44652894075d7d7a62e8805fe9f7f8f7d
parente6100b5b76a71c4c1fd9f10dfd24763195b0a4f2 (diff)
remove warnings about unused variables
-rw-r--r--stddef.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/stddef.c b/stddef.c
index c42abf3..575881d 100644
--- a/stddef.c
+++ b/stddef.c
@@ -1,19 +1,23 @@
#include <stddef.h>
#include "test.h"
+struct s {
+ char a;
+ char b;
+};
+
void test_stddef_h(void)
{
ptrdiff_t ptrdiff;
size_t size;
wchar_t wchar;
- struct s {
- char a;
- char b;
- };
-
static struct s the_s;
+ (void)ptrdiff;
+ (void)size;
+ (void)wchar;
+
testing_header("stddef.h");
test_true(NULL == 0);