summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2020-05-02 00:34:13 +0100
committeriphydf <iphydf@users.noreply.github.com>2020-05-02 22:00:09 +0100
commitf8ab32aaa4efce2c9a310a14d10b19fb8544cfd9 (patch)
tree4dbc49882d6af0954c533b2482b2100d312d2bc7 /testing
parent2570ddcb17fdf5bea56c6bc1c5c2d04ba2068ee7 (diff)
Add a check that we don't have any unused functions.
This check puts all of our code in a C++ anonymous namespace, which is effectively making all functions `static`. This allows the compiler to determine that a function is unused, so we can delete it.
Diffstat (limited to 'testing')
-rw-r--r--testing/DHT_test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/testing/DHT_test.c b/testing/DHT_test.c
index 8ba61ec2..5f28eb99 100644
--- a/testing/DHT_test.c
+++ b/testing/DHT_test.c
@@ -17,6 +17,7 @@
17#define _XOPEN_SOURCE 600 17#define _XOPEN_SOURCE 600
18#endif 18#endif
19 19
20#include <assert.h>
20#include <stdlib.h> 21#include <stdlib.h>
21#include <stdio.h> 22#include <stdio.h>
22#include <string.h> 23#include <string.h>