tests: remove unused variables

This commit is contained in:
Sébastien Helleu 2015-03-03 07:43:23 +01:00
parent f6941c20eb
commit 3eb6cd3cd9
3 changed files with 7 additions and 11 deletions

View File

@ -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";

View File

@ -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,

View File

@ -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==" },