1 |
commit: b232fa80d98fd220ade0f37f5dde761240b60240 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 5 12:41:48 2018 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 5 12:41:48 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=b232fa80 |
7 |
|
8 |
tests: silence unused function warnings |
9 |
|
10 |
as side-effect of just including everything (non-library style) the |
11 |
compiler complains when static functions aren't used, tell it not to |
12 |
|
13 |
tests/atom_explode/test.c | 6 +++++- |
14 |
tests/mkdir/test.c | 8 +++++++- |
15 |
2 files changed, 12 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/tests/atom_explode/test.c b/tests/atom_explode/test.c |
18 |
index ef05a69..6365088 100644 |
19 |
--- a/tests/atom_explode/test.c |
20 |
+++ b/tests/atom_explode/test.c |
21 |
@@ -1,5 +1,5 @@ |
22 |
/* |
23 |
- * Copyright 2005-2014 Gentoo Foundation |
24 |
+ * Copyright 2005-2018 Gentoo Foundation |
25 |
* Distributed under the terms of the GNU General Public License v2 |
26 |
* |
27 |
* Copyright 2005-2008 Ned Ludd - <solar@g.o> |
28 |
@@ -22,6 +22,10 @@ int main(int argc, char *argv[]) |
29 |
{ |
30 |
int i; |
31 |
depend_atom *a; |
32 |
+ |
33 |
+ (void)xcalloc; |
34 |
+ (void)xmemdup; |
35 |
+ |
36 |
/* printf("input -> CATEGORY / [P] PN - PVR [PV] [PR_int]\n"); */ |
37 |
for (i = 1; i < argc; ++i) { |
38 |
a = atom_explode(argv[i]); |
39 |
|
40 |
diff --git a/tests/mkdir/test.c b/tests/mkdir/test.c |
41 |
index 0575eac..143bb67 100644 |
42 |
--- a/tests/mkdir/test.c |
43 |
+++ b/tests/mkdir/test.c |
44 |
@@ -1,5 +1,5 @@ |
45 |
/* |
46 |
- * Copyright 2005-2014 Gentoo Foundation |
47 |
+ * Copyright 2005-2018 Gentoo Foundation |
48 |
* Distributed under the terms of the GNU General Public License v2 |
49 |
* |
50 |
* Copyright 2005-2008 Ned Ludd - <solar@g.o> |
51 |
@@ -16,6 +16,12 @@ int main(int argc, char *argv[]) |
52 |
{ |
53 |
int i, ret; |
54 |
|
55 |
+ (void)xcalloc; |
56 |
+ (void)xzalloc; |
57 |
+ (void)xrealloc; |
58 |
+ (void)xmemdup; |
59 |
+ (void)rmdir_r_at; |
60 |
+ |
61 |
if (argc <= 1) |
62 |
return 1; |