summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-03-03 07:43:23 +0100
committerSébastien Helleu <flashcode@flashtux.org>2015-03-03 07:43:23 +0100
commit3eb6cd3cd92928c907b4d19947ecc51d4b7b28a7 (patch)
tree86b7a606f22bf983e610d92c8ecf6a7ea4449071 /tests/unit
parentf6941c20eb53ba34569493980008e3c4347a1377 (diff)
downloadweechat-3eb6cd3cd92928c907b4d19947ecc51d4b7b28a7.zip
tests: remove unused variables
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/core/test-arraylist.cpp2
-rw-r--r--tests/unit/core/test-hashtable.cpp2
-rw-r--r--tests/unit/core/test-string.cpp14
3 files changed, 7 insertions, 11 deletions
diff --git a/tests/unit/core/test-arraylist.cpp b/tests/unit/core/test-arraylist.cpp
index 00f1eb525..e4ab3a1a7 100644
--- a/tests/unit/core/test-arraylist.cpp
+++ b/tests/unit/core/test-arraylist.cpp
@@ -75,7 +75,7 @@ void
test_arraylist (int initial_size, int sorted, int allow_duplicates)
{
struct t_arraylist *arraylist;
- int i, index, index_insert, expected_pos;
+ int i, index, index_insert;
void *pointer;
const char *item_aaa = "aaa";
const char *item_abc = "abc";
diff --git a/tests/unit/core/test-hashtable.cpp b/tests/unit/core/test-hashtable.cpp
index 0bb4bccfb..0ff23d239 100644
--- a/tests/unit/core/test-hashtable.cpp
+++ b/tests/unit/core/test-hashtable.cpp
@@ -140,7 +140,7 @@ TEST(Hashtable, SetGetRemove)
const char *str_value = HASHTABLE_TEST_VALUE;
const char *ptr_value;
unsigned long long hash;
- int i, j;
+ int i;
hashtable = hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
diff --git a/tests/unit/core/test-string.cpp b/tests/unit/core/test-string.cpp
index d91a71455..73a88b5ca 100644
--- a/tests/unit/core/test-string.cpp
+++ b/tests/unit/core/test-string.cpp
@@ -461,7 +461,7 @@ TEST(String, MaskToRegex)
TEST(String, Regex)
{
- int flags, rc;
+ int flags;
const char *ptr;
regex_t regex;
@@ -630,7 +630,6 @@ TEST(String, ReplaceRegex)
TEST(String, ReplaceWithCallback)
{
- regex_t regex;
char *result;
int errors;
@@ -685,7 +684,7 @@ TEST(String, ReplaceWithCallback)
TEST(String, Split)
{
- char **argv, *str;
+ char **argv;
int argc;
POINTERS_EQUAL(NULL, string_split (NULL, NULL, 0, 0, NULL));
@@ -756,7 +755,7 @@ TEST(String, Split)
TEST(String, SplitShared)
{
- char **argv, *str;
+ char **argv;
int argc;
POINTERS_EQUAL(NULL, string_split_shared (NULL, NULL, 0, 0, NULL));
@@ -789,7 +788,7 @@ TEST(String, SplitShared)
TEST(String, SplitShell)
{
- char **argv, *str;
+ char **argv;
int argc;
POINTERS_EQUAL(NULL, string_split_shell (NULL, NULL));
@@ -826,8 +825,7 @@ TEST(String, SplitShell)
TEST(String, SplitCommand)
{
- char **argv, *str;
- int argc;
+ char **argv;
POINTERS_EQUAL(NULL, string_split_command (NULL, ';'));
POINTERS_EQUAL(NULL, string_split_command ("", ';'));
@@ -966,8 +964,6 @@ TEST(String, FormatSize)
TEST(String, BaseN)
{
char str[1024];
- const char *str_abc = "abc";
- const char *str_abc_base64 = "YWJj";
const char *str_base64[][2] =
{ { "", "" },
{ "A", "QQ==" },