* [gentoo-commits] proj/portage-utils:master commit in: tests/mkdir/, tests/atom_explode/
@ 2018-04-05 12:46 Fabian Groffen
0 siblings, 0 replies; only message in thread
From: Fabian Groffen @ 2018-04-05 12:46 UTC (permalink / raw
To: gentoo-commits
commit: b232fa80d98fd220ade0f37f5dde761240b60240
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 5 12:41:48 2018 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Apr 5 12:41:48 2018 +0000
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=b232fa80
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
tests/atom_explode/test.c | 6 +++++-
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;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-04-05 12:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-05 12:46 [gentoo-commits] proj/portage-utils:master commit in: tests/mkdir/, tests/atom_explode/ Fabian Groffen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox