From 25c4c78e2ddad482dfc9d5a104f76325fcc2f8e5 Mon Sep 17 00:00:00 2001 From: Jason Copenhaver Date: Fri, 16 Jan 2015 16:50:24 -0300 Subject: Fix compiler warnings on Cygwin and Mac OS X. * Don't use PIE/PIC on Cygwin/Darwin unless specified as these platforms don't support it. * Cleanup warnings for 'make check' build. * Fix the type issue for getsockopt calls. * Fix enum warnings in Yahoo libs on Mac OS X. --- tests/check_arc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/check_arc.c') diff --git a/tests/check_arc.c b/tests/check_arc.c index 9d913dcd..e9e7d382 100644 --- a/tests/check_arc.c +++ b/tests/check_arc.c @@ -87,6 +87,8 @@ static void check_decod(int l) len = arc_decode( decrypt_tests[i].crypted, decrypt_tests[i].len, &decrypted, password ); + fail_if( len == -1, + "`%s' didn't decrypt properly", decrypt_tests[i].decrypted ); fail_if( strcmp( decrypt_tests[i].decrypted, decrypted ) != 0, "`%s' didn't decrypt properly", decrypt_tests[i].decrypted ); -- cgit v1.2.3