-
Notifications
You must be signed in to change notification settings - Fork 219
Closed
Description
fail_if is broken with check-0.15.1 (did not test 0.15.0)
The following code no longer compiles
#include <check.h>
void test_check0151()
{
int a = 1, b = 2;
fail_if(a == b);
}
with the output
test_check0151.c: In function 'test_check0151':
test_check0151.c:8:5: error: too few arguments to function '_ck_assert_failed'
8 | fail_if(a == b);
| ^~~~~~~
/usr/include/check.h:502:27: note: declared here
502 | CK_DLL_EXP void CK_EXPORT _ck_assert_failed(const char *file, int line,
| ^~~~~~~~~~~~~~~~~
I know fail_if is deprecated like forever... but old code is still using it :/
mandree
Metadata
Metadata
Assignees
Labels
No labels