]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
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 c6767e38fa9e6d8f1b868233ffb4a499d4366a05..b50198ce34cc6e7a7525a9aed4b629319491d24b 100644 (file)
@@ -337,7 +337,7 @@ test4(void)
 
 
 int
-main()
+main(void)
 {
        lzma_init();
 
index 14df375a9c16c8ed26ae1cfac56ec6e8aafda91a..cb6b8ec1dd0cf4a0f011759c3b83b07a58b9ae89 100644 (file)
@@ -79,7 +79,7 @@ test_crc64(void)
 
 
 int
-main()
+main(void)
 {
        bool error = false;
 
index 0a16f21ab030c0ef5e7e82c01e385ec5f3b1b563..bab344ae1c9c42120bb2b3d6576e5895ad625914 100644 (file)
@@ -310,7 +310,7 @@ test_lzma(void)
 
 
 int
-main()
+main(void)
 {
        lzma_init();
 
index 399963d31c2c33b7ac95b057a70b844e282ff778..2c00604516d95c61994db5bda6c8fa5a73047098 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 e7899ef33ed83ef9ec92c492ca871ae1bc74e289..c073fafe0a5b3375b4107560742bd02422a645b0 100644 (file)
@@ -693,7 +693,7 @@ test9(void)
 
 
 int
-main()
+main(void)
 {
        lzma_init();
 
index 4cd2257622e6cd033492cc4694004e2dd7188e32..99e55d5e64ed38fae69813c209527a42467433c5 100644 (file)
@@ -162,7 +162,7 @@ test_decode_invalid(void)
 
 
 int
-main()
+main(void)
 {
        lzma_init();