[tkloczko@barrel libxcb-1.13.1]$ make check
Making check in src
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libxcb-1.13.1/src'
make check-am
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libxcb-1.13.1/src'
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libxcb-1.13.1/src'
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libxcb-1.13.1/src'
Making check in tests
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libxcb-1.13.1/tests'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libxcb-1.13.1/tests'
make -k check_all
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libxcb-1.13.1/tests'
gcc -DHAVE_CONFIG_H -I. -I../src -Wall -Werror -pthread -I../src -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -c -o check_all.o check_all.c
check_all.c: In function ‘suite_add_test’:
check_all.c:7:2: error: passing argument 2 of ‘_tcase_add_test’ from incompatible pointer type [-Werror=incompatible-pointer-types]
7 | tcase_add_test(tc, tf);
| ^~~~~~~~~~~~~~
| |
| TFun {aka void (*)(int)}
In file included from check_suites.h:1,
from check_all.c:2:
/usr/include/check.h:331:69: note: expected ‘const TTest *’ but argument is of type ‘TFun’ {aka ‘void (*)(int)’}
331 | CK_DLL_EXP void CK_EXPORT _tcase_add_test(TCase * tc, const TTest * ttest,
| ~~~~~~~~~~~~~~^~~~~
cc1: all warnings being treated as errors
make[3]: *** [Makefile:669: check_all.o] Error 1
gcc -DHAVE_CONFIG_H -I. -I../src -Wall -Werror -pthread -I../src -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -c -o check_public.o check_public.c
check_public.c: In function ‘public_suite’:
check_public.c:210:20: error: passing argument 2 of ‘suite_add_test’ from incompatible pointer type [-Werror=incompatible-pointer-types]
210 | suite_add_test(s, parse_display_unix, "xcb_parse_display unix");
| ^~~~~~~~~~~~~~~~~~
| |
| const TTest *
In file included from check_public.c:4:
check_suites.h:3:36: note: expected ‘TFun’ {aka ‘void (*)(int)’} but argument is of type ‘const TTest *’
3 | void suite_add_test(Suite *s, TFun tf, const char *name);
| ~~~~~^~
check_public.c:211:20: error: passing argument 2 of ‘suite_add_test’ from incompatible pointer type [-Werror=incompatible-pointer-types]
211 | suite_add_test(s, parse_display_ip, "xcb_parse_display ip");
| ^~~~~~~~~~~~~~~~
| |
| const TTest *
In file included from check_public.c:4:
check_suites.h:3:36: note: expected ‘TFun’ {aka ‘void (*)(int)’} but argument is of type ‘const TTest *’
3 | void suite_add_test(Suite *s, TFun tf, const char *name);
| ~~~~~^~
check_public.c:212:20: error: passing argument 2 of ‘suite_add_test’ from incompatible pointer type [-Werror=incompatible-pointer-types]
212 | suite_add_test(s, parse_display_ipv4, "xcb_parse_display ipv4");
| ^~~~~~~~~~~~~~~~~~
| |
| const TTest *
In file included from check_public.c:4:
check_suites.h:3:36: note: expected ‘TFun’ {aka ‘void (*)(int)’} but argument is of type ‘const TTest *’
3 | void suite_add_test(Suite *s, TFun tf, const char *name);
| ~~~~~^~
check_public.c:213:20: error: passing argument 2 of ‘suite_add_test’ from incompatible pointer type [-Werror=incompatible-pointer-types]
213 | suite_add_test(s, parse_display_ipv6, "xcb_parse_display ipv6");
| ^~~~~~~~~~~~~~~~~~
| |
| const TTest *
In file included from check_public.c:4:
check_suites.h:3:36: note: expected ‘TFun’ {aka ‘void (*)(int)’} but argument is of type ‘const TTest *’
3 | void suite_add_test(Suite *s, TFun tf, const char *name);
| ~~~~~^~
check_public.c:214:20: error: passing argument 2 of ‘suite_add_test’ from incompatible pointer type [-Werror=incompatible-pointer-types]
214 | suite_add_test(s, parse_display_decnet, "xcb_parse_display decnet");
| ^~~~~~~~~~~~~~~~~~~~
| |
| const TTest *
In file included from check_public.c:4:
check_suites.h:3:36: note: expected ‘TFun’ {aka ‘void (*)(int)’} but argument is of type ‘const TTest *’
3 | void suite_add_test(Suite *s, TFun tf, const char *name);
| ~~~~~^~
check_public.c:215:20: error: passing argument 2 of ‘suite_add_test’ from incompatible pointer type [-Werror=incompatible-pointer-types]
215 | suite_add_test(s, parse_display_negative, "xcb_parse_display negative");
| ^~~~~~~~~~~~~~~~~~~~~~
| |
| const TTest *
In file included from check_public.c:4:
check_suites.h:3:36: note: expected ‘TFun’ {aka ‘void (*)(int)’} but argument is of type ‘const TTest *’
3 | void suite_add_test(Suite *s, TFun tf, const char *name);
| ~~~~~^~
check_public.c:216:20: error: passing argument 2 of ‘suite_add_test’ from incompatible pointer type [-Werror=incompatible-pointer-types]
216 | suite_add_test(s, popcount, "xcb_popcount");
| ^~~~~~~~
| |
| const TTest *
In file included from check_public.c:4:
check_suites.h:3:36: note: expected ‘TFun’ {aka ‘void (*)(int)’} but argument is of type ‘const TTest *’
3 | void suite_add_test(Suite *s, TFun tf, const char *name);
| ~~~~~^~
cc1: all warnings being treated as errors
make[3]: *** [Makefile:669: check_public.o] Error 1
make[3]: Target 'check_all' not remade because of errors.
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libxcb-1.13.1/tests'
make[2]: *** [Makefile:1013: check-am] Error 2
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libxcb-1.13.1/tests'
make[1]: *** [Makefile:698: check-recursive] Error 1
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libxcb-1.13.1/tests'
make: *** [Makefile:791: check-recursive] Error 1