tests: remove compiler warnings about unused parameters
This commit is contained in:
parent
d9251df1a3
commit
cace7471f0
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user