diff options
author | 2018-04-05 14:41:48 +0200 | |
---|---|---|
committer | 2018-04-05 14:41:48 +0200 | |
commit | b232fa80d98fd220ade0f37f5dde761240b60240 (patch) | |
tree | 7c6482da10251f820439baf0c6f81c7946a07a1c | |
parent | tests/copy_file/test.c: fix compilation warning (diff) | |
download | portage-utils-b232fa80d98fd220ade0f37f5dde761240b60240.tar.gz portage-utils-b232fa80d98fd220ade0f37f5dde761240b60240.tar.bz2 portage-utils-b232fa80d98fd220ade0f37f5dde761240b60240.zip |
tests: silence unused function warnings
as side-effect of just including everything (non-library style) the
compiler complains when static functions aren't used, tell it not to
-rw-r--r-- | tests/atom_explode/test.c | 6 | ||||
-rw-r--r-- | tests/mkdir/test.c | 8 |
2 files changed, 12 insertions, 2 deletions
diff --git a/tests/atom_explode/test.c b/tests/atom_explode/test.c index ef05a69..6365088 100644 --- a/tests/atom_explode/test.c +++ b/tests/atom_explode/test.c @@ -1,5 +1,5 @@ /* - * Copyright 2005-2014 Gentoo Foundation + * Copyright 2005-2018 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 * * Copyright 2005-2008 Ned Ludd - <solar@gentoo.org> @@ -22,6 +22,10 @@ int main(int argc, char *argv[]) { int i; depend_atom *a; + + (void)xcalloc; + (void)xmemdup; + /* printf("input -> CATEGORY / [P] PN - PVR [PV] [PR_int]\n"); */ for (i = 1; i < argc; ++i) { a = atom_explode(argv[i]); diff --git a/tests/mkdir/test.c b/tests/mkdir/test.c index 0575eac..143bb67 100644 --- a/tests/mkdir/test.c +++ b/tests/mkdir/test.c @@ -1,5 +1,5 @@ /* - * Copyright 2005-2014 Gentoo Foundation + * Copyright 2005-2018 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 * * Copyright 2005-2008 Ned Ludd - <solar@gentoo.org> @@ -16,6 +16,12 @@ int main(int argc, char *argv[]) { int i, ret; + (void)xcalloc; + (void)xzalloc; + (void)xrealloc; + (void)xmemdup; + (void)rmdir_r_at; + if (argc <= 1) return 1; |