Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cl/tests: make the code compile with gcc-14.x
This commit fixes the following errors: ``` In file included from cl/tests/data/vk-0100.c:1: cl/../include/predator-builtins/verifier-builtins.h: In function '__VERIFIER_error': cl/../include/predator-builtins/verifier-builtins.h:119:5: error: implicit declaration of function 'abort' [-Wimplicit-function-declaration] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:1:1: note: include '<stdlib.h>' or provide a declaration of 'abort' +++ |+#include <stdlib.h> 1 | /* cl/../include/predator-builtins/verifier-builtins.h:119:5: warning: incompatible implicit declaration of built-in function 'abort' [-Wbuiltin-declaration-mismatch] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:119:5: note: include '<stdlib.h>' or provide a declaration of 'abort' cl_build/tests/libchk_var_killer.so: warning: some errors already detected, additional passes will be skipped In file included from cl/tests/data/vk-0101.c:1: cl/../include/predator-builtins/verifier-builtins.h: In function '__VERIFIER_error': cl/../include/predator-builtins/verifier-builtins.h:119:5: error: implicit declaration of function 'abort' [-Wimplicit-function-declaration] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:1:1: note: include '<stdlib.h>' or provide a declaration of 'abort' +++ |+#include <stdlib.h> 1 | /* cl/../include/predator-builtins/verifier-builtins.h:119:5: warning: incompatible implicit declaration of built-in function 'abort' [-Wbuiltin-declaration-mismatch] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:119:5: note: include '<stdlib.h>' or provide a declaration of 'abort' cl_build/tests/libchk_var_killer.so: warning: some errors already detected, additional passes will be skipped cl/tests/data/pt-0850.c: In function 'main': cl/tests/data/pt-0850.c:16:10: error: assignment to 'int *' from incompatible pointer type 'int **' [-Wincompatible-pointer-types] 16 | ptrB = &ptrC; | ^ cl_build/tests/libchk_pt.so: warning: some errors already detected, additional passes will be skipped cl/tests/data/pt-0950.c: In function 'test': cl/tests/data/pt-0950.c:13:8: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion] 13 | *p = &i; | ^ cl/tests/data/pt-0950.c: In function 'main': cl/tests/data/pt-0950.c:21:7: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion] 21 | i = &j; | ^ cl_build/tests/libchk_pt.so: warning: some errors already detected, additional passes will be skipped In file included from cl/tests/data/pt-1203.c:3: cl/../include/predator-builtins/verifier-builtins.h: In function '__VERIFIER_error': cl/../include/predator-builtins/verifier-builtins.h:119:5: error: implicit declaration of function 'abort' [-Wimplicit-function-declaration] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:1:1: note: include '<stdlib.h>' or provide a declaration of 'abort' +++ |+#include <stdlib.h> 1 | /* cl/../include/predator-builtins/verifier-builtins.h:119:5: warning: incompatible implicit declaration of built-in function 'abort' [-Wbuiltin-declaration-mismatch] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:119:5: note: include '<stdlib.h>' or provide a declaration of 'abort' cl_build/tests/libchk_pt.so: warning: some errors already detected, additional passes will be skipped In file included from cl/tests/data/pt-1300.c:2: cl/../include/predator-builtins/verifier-builtins.h: In function '__VERIFIER_error': cl/../include/predator-builtins/verifier-builtins.h:119:5: error: implicit declaration of function 'abort' [-Wimplicit-function-declaration] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:1:1: note: include '<stdlib.h>' or provide a declaration of 'abort' +++ |+#include <stdlib.h> 1 | /* cl/../include/predator-builtins/verifier-builtins.h:119:5: warning: incompatible implicit declaration of built-in function 'abort' [-Wbuiltin-declaration-mismatch] 119 | abort(); | ^~~~~ cl/../include/predator-builtins/verifier-builtins.h:119:5: note: include '<stdlib.h>' or provide a declaration of 'abort' cl_build/tests/libchk_pt.so: warning: some errors already detected, additional passes will be skipped cl/tests/data/pt-0850.c: In function 'main': cl/tests/data/pt-0850.c:16:10: error: assignment to 'int *' from incompatible pointer type 'int **' [-Wincompatible-pointer-types] 16 | ptrB = &ptrC; | ^ cl_build/tests/libchk_pt.so: warning: some errors already detected, additional passes will be skipped cl/tests/data/pt-0950.c: In function 'test': cl/tests/data/pt-0950.c:13:8: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion] 13 | *p = &i; | ^ cl/tests/data/pt-0950.c: In function 'main': cl/tests/data/pt-0950.c:21:7: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion] 21 | i = &j; | ^ cl_build/tests/libchk_pt.so: warning: some errors already detected, additional passes will be skipped ``` Related: #92 Related: #93
- Loading branch information