tests: remove compiler warnings about unused parameters

This commit is contained in:
Sébastien Helleu 2015-03-06 19:24:24 +01:00
parent d9251df1a3
commit cace7471f0
3 changed files with 13 additions and 0 deletions

View File

@ -65,6 +65,10 @@ int
test_cmp_cb (void *data, struct t_arraylist *arraylist,
void *pointer1, void *pointer2)
{
/* make C++ compiler happy */
(void) data;
(void) arraylist;
if (!pointer1 || !pointer2)
return (pointer1) ? 1 : ((pointer2) ? -1 : 0);

View File

@ -58,6 +58,9 @@ TEST(Hashtable, HashDbj2)
unsigned long long
test_hashtable_hash_key_cb (struct t_hashtable *hashtable, const void *key)
{
/* make C++ compiler happy */
(void) hashtable;
return hashtable_hash_key_djb2 ((const char *)key) + 1;
}
@ -71,6 +74,9 @@ int
test_hashtable_keycmp_cb (struct t_hashtable *hashtable,
const void *key1, const void *key2)
{
/* make C++ compiler happy */
(void) hashtable;
return strcmp ((const char *)key1, (const char *)key2);
}

View File

@ -567,6 +567,9 @@ TEST(String, Highlight)
char *
test_replace_cb (void *data, const char *text)
{
/* make C++ compiler happy */
(void) data;
if (strcmp (text, "abc") == 0)
return strdup ("def");