main: explicitly tell the compiler we don't want to use the userdata pointers in our callback

feature/tap-sh
William Pitcock 2012-05-03 17:21:41 +00:00
parent 1caa0dca87
commit 460a0afb04
1 changed files with 11 additions and 0 deletions

11
main.c
View File

@ -58,6 +58,8 @@ static char *want_variable = NULL;
static void static void
print_cflags(pkg_t *pkg, void *unused) print_cflags(pkg_t *pkg, void *unused)
{ {
(void) unused;
if (pkg->cflags != NULL) if (pkg->cflags != NULL)
printf("%s ", pkg->cflags); printf("%s ", pkg->cflags);
} }
@ -65,6 +67,8 @@ print_cflags(pkg_t *pkg, void *unused)
static void static void
print_libs(pkg_t *pkg, void *unused) print_libs(pkg_t *pkg, void *unused)
{ {
(void) unused;
if (pkg->libs != NULL) if (pkg->libs != NULL)
printf("%s ", pkg->libs); printf("%s ", pkg->libs);
@ -75,6 +79,8 @@ print_libs(pkg_t *pkg, void *unused)
static void static void
print_modversion(pkg_t *pkg, void *unused) print_modversion(pkg_t *pkg, void *unused)
{ {
(void) unused;
if (pkg->version != NULL) if (pkg->version != NULL)
printf("%s\n", pkg->version); printf("%s\n", pkg->version);
} }
@ -83,6 +89,7 @@ static void
print_variable(pkg_t *pkg, void *unused) print_variable(pkg_t *pkg, void *unused)
{ {
char *variable; char *variable;
(void) unused;
variable = tuple_find(pkg->vars, want_variable); variable = tuple_find(pkg->vars, want_variable);
if (variable != NULL) if (variable != NULL)
@ -93,6 +100,7 @@ static void
print_variables(pkg_t *pkg, void *unused) print_variables(pkg_t *pkg, void *unused)
{ {
pkg_tuple_t *node; pkg_tuple_t *node;
(void) unused;
foreach_list_entry(pkg->vars, node) foreach_list_entry(pkg->vars, node)
printf("%s\n", node->key); printf("%s\n", node->key);
@ -102,6 +110,7 @@ static void
print_requires(pkg_t *pkg, void *unused) print_requires(pkg_t *pkg, void *unused)
{ {
pkg_dependency_t *node; pkg_dependency_t *node;
(void) unused;
foreach_list_entry(pkg->requires, node) foreach_list_entry(pkg->requires, node)
{ {
@ -118,6 +127,7 @@ static void
print_requires_private(pkg_t *pkg, void *unused) print_requires_private(pkg_t *pkg, void *unused)
{ {
pkg_dependency_t *node; pkg_dependency_t *node;
(void) unused;
foreach_list_entry(pkg->requires_private, node) foreach_list_entry(pkg->requires_private, node)
{ {
@ -134,6 +144,7 @@ static void
print_digraph_node(pkg_t *pkg, void *unused) print_digraph_node(pkg_t *pkg, void *unused)
{ {
pkg_dependency_t *node; pkg_dependency_t *node;
(void) unused;
printf("\"%s\" [fontname=Sans fontsize=8]\n", pkg->id); printf("\"%s\" [fontname=Sans fontsize=8]\n", pkg->id);