Created
April 27, 2020 08:40
-
-
Save x4m3/4cf3a3acc4fe302c2540807d5dcfeae7 to your computer and use it in GitHub Desktop.
libcsptr build error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scanning dependencies of target csptr | |
[ 12%] Building C object CMakeFiles/csptr.dir/src/mman.c.o | |
[ 25%] Linking C static library libcsptr.a | |
[ 25%] Built target csptr | |
Scanning dependencies of target check_unit | |
[ 37%] Building C object check/CMakeFiles/check_unit.dir/test/test.c.o | |
In file included from /home/phil/.cache/yay/libcsptr/src/libcsptr-2.0.4/check/test/test.c:2: | |
/home/phil/.cache/yay/libcsptr/src/libcsptr-2.0.4/check/test/utils.h: In function ‘make_test_case’: | |
/home/phil/.cache/yay/libcsptr/src/libcsptr-2.0.4/check/test/utils.h:26:28: error: passing argument 2 of ‘_tcase_add_test’ from incompatible pointer type [-Werror=incompatible-pointer-types] | |
26 | tcase_add_test(tc, *f); | |
| ^ | |
| | | |
| TFun {aka void (*)(int)} | |
/usr/include/check.h:331:69: note: expected ‘const TTest *’ {aka ‘const struct 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment