Skip to content

Commit 98cbc14

Browse files
committed
Add NOT_USEDs
1 parent de632de commit 98cbc14

File tree

17 files changed

+39
-3
lines changed

17 files changed

+39
-3
lines changed

libraries/databases/pickle/test/pickle-test.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,8 @@ result_t pickle_test(const char *resources)
599599
{
600600
result_t rc;
601601

602+
NOT_USED(resources);
603+
602604
printf("test: pickle test 1\n");
603605

604606
rc = pickle__test1_write();

libraries/databases/tag-db/test/tag-db-test.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,8 @@ result_t tagdb_test(const char *resources)
882882
State_t state;
883883
int i;
884884

885+
NOT_USED(resources);
886+
885887
printf("test: init\n");
886888

887889
err = tagdb_init();

libraries/datastruct/atom/test/atom-test.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ result_t atom_test(const char *resources)
199199
result_t err;
200200
atom_set_t *d;
201201

202+
NOT_USED(resources);
203+
202204
d = atom_create_tuned(1, 12);
203205
if (d == NULL)
204206
goto Failure;

libraries/datastruct/bitarr/test/bitarr-test.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#endif
99

1010
#include "base/result.h"
11+
#include "base/utils.h"
1112
#include "datastruct/bitarr.h"
1213

1314
#include "test/all-tests.h"
@@ -39,6 +40,8 @@ result_t bitarr_test(const char *resources)
3940
testbits_t arr;
4041
int i;
4142

43+
NOT_USED(resources);
44+
4245
printf("test: create\n");
4346

4447
bitarr_wipe(arr, sizeof(arr));

libraries/datastruct/bitfifo/test/bitfifo-test.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#endif
1010

1111
#include "base/result.h"
12+
#include "base/utils.h"
1213
#include "datastruct/bitfifo.h"
1314

1415
#include "test/all-tests.h"
@@ -30,8 +31,6 @@ expected[] =
3031
{ 32, 0xFFFFFFFF },
3132
};
3233

33-
#define NELEMS(a) (int)(sizeof(a) / sizeof((a)[0]))
34-
3534
/* shows changes from previous stats */
3635
static void dump(const bitfifo_t *fifo)
3736
{
@@ -70,6 +69,8 @@ result_t bitfifo_test(const char *resources)
7069
int i;
7170
unsigned int outbits;
7271

72+
NOT_USED(resources);
73+
7374
fifo = bitfifo_create(MAXSIZE);
7475
if (fifo == NULL)
7576
return result_OOM;

libraries/datastruct/bitvec/test/bitvec-test.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#endif
88

99
#include "base/result.h"
10+
#include "base/utils.h"
1011
#include "datastruct/bitvec.h"
1112

1213
#include "test/all-tests.h"
@@ -30,6 +31,8 @@ result_t bitvec_test(const char *resources)
3031
bitvec_t *w;
3132
bitvec_t *x;
3233

34+
NOT_USED(resources);
35+
3336
printf("test: create\n");
3437

3538
v = bitvec_create(0);

libraries/datastruct/cache/test/cache-test.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#endif
1010

1111
#include "base/result.h"
12+
#include "base/utils.h"
1213
#include "datastruct/cache.h"
1314

1415
#include "test/all-tests.h"
@@ -25,6 +26,8 @@ result_t cache_test(const char *resources)
2526
int nfailures;
2627
int i;
2728

29+
NOT_USED(resources);
30+
2831
config.hash_chain_length = 4;
2932
config.nentries_percentage = 25;
3033

libraries/datastruct/hash/test/hash-test.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ result_t hash_test(const char *resources)
6464
hash_t *d;
6565
int i;
6666

67+
NOT_USED(resources);
68+
6769
printf("test: create\n");
6870

6971
/* use default string handling */

libraries/datastruct/list/test/list-test.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ result_t list_test(const char *resources)
5050

5151
int i;
5252

53+
NOT_USED(resources);
54+
5355
printf("test: add to head\n");
5456

5557
for (i = 0; i < NELEMS(data); i++)

libraries/datastruct/ntree/test/ntree-test.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ result_t ntree_test(const char *resources)
211211
int nfailures = 0;
212212
int i;
213213

214+
NOT_USED(resources);
215+
214216
BEGIN_TEST("build tree");
215217

216218
for (i = 0; i < NELEMS(test_data); i++)

0 commit comments

Comments
 (0)