Fixed the tests to build with -Werror.
authorLasse Collin <lasse.collin@tukaani.org>
Sun, 9 Dec 2007 09:03:28 +0000 (11:03 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Sun, 9 Dec 2007 09:03:28 +0000 (11:03 +0200)
tests/test_block_header.c
tests/test_check.c
tests/test_filter_flags.c
tests/test_index.c
tests/test_info.c
tests/test_stream_flags.c

index c6767e3..b50198c 100644 (file)
@@ -337,7 +337,7 @@ test4(void)
 
 
 int
-main()
+main(void)
 {
        lzma_init();
 
index 14df375..cb6b8ec 100644 (file)
@@ -79,7 +79,7 @@ test_crc64(void)
 
 
 int
-main()
+main(void)
 {
        bool error = false;
 
index 0a16f21..bab344a 100644 (file)
@@ -310,7 +310,7 @@ test_lzma(void)
 
 
 int
-main()
+main(void)
 {
        lzma_init();
 
index 399963d..2c00604 100644 (file)
 
 
 int
-main()
+main(void)
 {
-       lzma_index index[3] = {
-               { 22, 33, index + 1 },
-               { 44, 55, index + 2 },
+       lzma_index my_index[3] = {
+               { 22, 33, my_index + 1 },
+               { 44, 55, my_index + 2 },
                { 66, 77, NULL },
        };
 
-       lzma_index *i = lzma_index_dup(index, NULL);
+       lzma_index *i = lzma_index_dup(my_index, NULL);
        expect(i != NULL);
 
-       expect(lzma_index_is_equal(index, i));
+       expect(lzma_index_is_equal(my_index, i));
 
        i->next->next->uncompressed_size = 99;
-       expect(!lzma_index_is_equal(index, i));
+       expect(!lzma_index_is_equal(my_index, i));
 
        lzma_index_free(i, NULL);
 
index e7899ef..c073faf 100644 (file)
@@ -693,7 +693,7 @@ test9(void)
 
 
 int
-main()
+main(void)
 {
        lzma_init();
 
index 4cd2257..99e55d5 100644 (file)
@@ -162,7 +162,7 @@ test_decode_invalid(void)
 
 
 int
-main()
+main(void)
 {
        lzma_init();