1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

Fixed the tests to build with -Werror.

This commit is contained in:
Lasse Collin 2007-12-09 11:03:28 +02:00
parent 5d018dc035
commit 2bf36d22d2
6 changed files with 12 additions and 12 deletions

View file

@ -337,7 +337,7 @@ test4(void)
int
main()
main(void)
{
lzma_init();

View file

@ -79,7 +79,7 @@ test_crc64(void)
int
main()
main(void)
{
bool error = false;

View file

@ -310,7 +310,7 @@ test_lzma(void)
int
main()
main(void)
{
lzma_init();

View file

@ -21,21 +21,21 @@
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);

View file

@ -693,7 +693,7 @@ test9(void)
int
main()
main(void)
{
lzma_init();

View file

@ -162,7 +162,7 @@ test_decode_invalid(void)
int
main()
main(void)
{
lzma_init();