Commit c314d5c0 authored by Brice Videau's avatar Brice Videau
Browse files

Compile with -Wextra.

parent cde55c4d
Pipeline #11110 passed with stages
in 1 minute and 23 seconds
AM_CFLAGS = -std=c99 -Wall -Werror -pedantic AM_CFLAGS = -std=c99 -Wall -Wextra -Werror -pedantic
lib_LTLIBRARIES = libexcit.la lib_LTLIBRARIES = libexcit.la
......
...@@ -23,6 +23,7 @@ static int range_it_alloc(excit_t data) ...@@ -23,6 +23,7 @@ static int range_it_alloc(excit_t data)
static void range_it_free(excit_t data) static void range_it_free(excit_t data)
{ {
(void)data;
} }
static int range_it_copy(excit_t ddst, const_excit_t dsrc) static int range_it_copy(excit_t ddst, const_excit_t dsrc)
......
AM_COLOR_TESTS = yes AM_COLOR_TESTS = yes
AM_CFLAGS = -I$(top_srcdir)/src -std=c99 -Wall -Werror -pedantic AM_CFLAGS = -I$(top_srcdir)/src -std=c99 -Wextra -Wall -Werror -pedantic
AM_LDFLAGS = ../src/libexcit.la AM_LDFLAGS = ../src/libexcit.la
LIBHSOURCES = excit_test.h LIBHSOURCES = excit_test.h
......
...@@ -100,7 +100,7 @@ void test_composition_iterator(excit_t source, excit_t indexer) ...@@ -100,7 +100,7 @@ void test_composition_iterator(excit_t source, excit_t indexer)
} }
} }
int main(int argc, char *argv[]) int main()
{ {
excit_t source, indexer, source2, indexer2; excit_t source, indexer, source2, indexer2;
......
...@@ -109,7 +109,7 @@ void test_cons_iterator(int window, excit_t sit) ...@@ -109,7 +109,7 @@ void test_cons_iterator(int window, excit_t sit)
} }
} }
int main(int argc, char *argv[]) int main()
{ {
excit_t it1, it2, it3; excit_t it1, it2, it3;
......
...@@ -109,7 +109,7 @@ void test_hilbert2d_iterator(int order) ...@@ -109,7 +109,7 @@ void test_hilbert2d_iterator(int order)
} }
int main(int argc, char *argv[]) int main()
{ {
test_hilbert2d_iterator(3); test_hilbert2d_iterator(3);
test_hilbert2d_iterator(4); test_hilbert2d_iterator(4);
......
...@@ -77,7 +77,7 @@ void run_tests(const ssize_t len, const ssize_t *index) ...@@ -77,7 +77,7 @@ void run_tests(const ssize_t len, const ssize_t *index)
} }
} }
int main(int argc, char *argv[]) int main()
{ {
ssize_t n = NTESTS; ssize_t n = NTESTS;
......
...@@ -100,7 +100,7 @@ void test_loop_iterator(int loop, excit_t sit) ...@@ -100,7 +100,7 @@ void test_loop_iterator(int loop, excit_t sit)
} }
} }
int main(int argc, char *argv[]) int main()
{ {
excit_t it1, it2, it3; excit_t it1, it2, it3;
......
...@@ -229,7 +229,7 @@ void test_product_split_dim(void) ...@@ -229,7 +229,7 @@ void test_product_split_dim(void)
excit_free(it); excit_free(it);
} }
int main(int argc, char *argv[]) int main()
{ {
excit_t its[4]; excit_t its[4];
......
...@@ -76,7 +76,7 @@ void test_range_iterator(ssize_t start, ssize_t stop, ssize_t step) ...@@ -76,7 +76,7 @@ void test_range_iterator(ssize_t start, ssize_t stop, ssize_t step)
} }
} }
int main(int argc, char *argv[]) int main()
{ {
test_range_iterator(4, 12, 3); test_range_iterator(4, 12, 3);
test_range_iterator(0, 3, 1); test_range_iterator(0, 3, 1);
......
...@@ -134,7 +134,7 @@ void test_repeat_iterator(int repeat, excit_t sit) ...@@ -134,7 +134,7 @@ void test_repeat_iterator(int repeat, excit_t sit)
} }
} }
int main(int argc, char *argv[]) int main()
{ {
excit_t it1, it2, it3; excit_t it1, it2, it3;
......
...@@ -142,7 +142,6 @@ static void tleaf_test_scatter_policy_no_split(excit_t tleaf, ...@@ -142,7 +142,6 @@ static void tleaf_test_scatter_policy_no_split(excit_t tleaf,
} }
static void tleaf_test_round_robin_split(excit_t tleaf, static void tleaf_test_round_robin_split(excit_t tleaf,
const ssize_t depth,
const ssize_t *arities) const ssize_t *arities)
{ {
ssize_t i, value, size, cut_size; ssize_t i, value, size, cut_size;
...@@ -194,7 +193,7 @@ void run_tests(const ssize_t depth, const ssize_t *arities) ...@@ -194,7 +193,7 @@ void run_tests(const ssize_t depth, const ssize_t *arities)
assert(excit_rewind(rrobin) == EXCIT_SUCCESS); assert(excit_rewind(rrobin) == EXCIT_SUCCESS);
/* Test of split operation on round robin policy */ /* Test of split operation on round robin policy */
tleaf_test_round_robin_split(rrobin, depth, arities); tleaf_test_round_robin_split(rrobin, arities);
excit_free(rrobin); excit_free(rrobin);
...@@ -249,7 +248,7 @@ void run_tests(const ssize_t depth, const ssize_t *arities) ...@@ -249,7 +248,7 @@ void run_tests(const ssize_t depth, const ssize_t *arities)
} }
} }
int main(int argc, char *argv[]) int main()
{ {
ssize_t depth = 4; ssize_t depth = 4;
const ssize_t arities_0[4] = { 4, 8, 2, 4 }; const ssize_t arities_0[4] = { 4, 8, 2, 4 };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment