summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-03-06 19:24:24 +0100
committerSébastien Helleu <flashcode@flashtux.org>2015-03-06 19:24:24 +0100
commitcace7471f0aef6b2febd3241f1faaed870cc0af6 (patch)
tree18dab3d850e1ec80aa2ba02a118e15f21b807335 /tests/unit
parentd9251df1a367f494699d0f7630e68e1125709e1f (diff)
downloadweechat-cace7471f0aef6b2febd3241f1faaed870cc0af6.zip
tests: remove compiler warnings about unused parameters
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/core/test-arraylist.cpp4
-rw-r--r--tests/unit/core/test-hashtable.cpp6
-rw-r--r--tests/unit/core/test-string.cpp3
3 files changed, 13 insertions, 0 deletions
diff --git a/tests/unit/core/test-arraylist.cpp b/tests/unit/core/test-arraylist.cpp
index e4ab3a1a7..8564b5589 100644
--- a/tests/unit/core/test-arraylist.cpp
+++ b/tests/unit/core/test-arraylist.cpp
@@ -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);
diff --git a/tests/unit/core/test-hashtable.cpp b/tests/unit/core/test-hashtable.cpp
index 0ff23d239..a5da54b63 100644
--- a/tests/unit/core/test-hashtable.cpp
+++ b/tests/unit/core/test-hashtable.cpp
@@ -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);
}
diff --git a/tests/unit/core/test-string.cpp b/tests/unit/core/test-string.cpp
index 73a88b5ca..20a782cc8 100644
--- a/tests/unit/core/test-string.cpp
+++ b/tests/unit/core/test-string.cpp
@@ -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");