Skip to content

Commit

Permalink
sl/tests: make the code compile with gcc-14.x
Browse files Browse the repository at this point in the history
This commit fixes the following errors:
```
../tests/predator-regre/test-0170.c: In function 'DLInsertFirst':
../tests/predator-regre/test-0170.c:43:9: error: implicit declaration of function 'DLError' [-Wimplicit-function-declaration]
   43 |         DLError();
      |         ^~~~~~~

../tests/predator-regre/test-0183.c: In function 'main':
../tests/predator-regre/test-0183.c:114:5: error: implicit declaration of function '__VERIFIER_plot' [-Wimplicit-function-declaration]
  114 |     __VERIFIER_plot(NULL, &list, &p1, &p2);
      |     ^~~~~~~~~~~~~~~
[...]
```

Related: #92
Related: #93
  • Loading branch information
kdudka committed Mar 1, 2024
1 parent 57b907c commit e055f23
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/predator-regre/test-0170.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void DLDisposeList (struct TList *L) {
L->Act = ((void *)0);
L->Last = ((void *)0);
}

void DLError(void);
void DLInsertFirst (struct TList *L) {
struct TNode * ptr = malloc(sizeof *ptr);
if (((void *)0)==ptr) {
Expand Down
2 changes: 1 addition & 1 deletion tests/predator-regre/test-0183.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <stdlib.h>

extern int __VERIFIER_nondet_int(void);
#include <verifier-builtins.h>

static void fail(void) {
ERROR:
Expand Down
2 changes: 1 addition & 1 deletion tests/predator-regre/test-0184.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <stdlib.h>

extern int __VERIFIER_nondet_int(void);
#include <verifier-builtins.h>

static void fail(void) {
ERROR:
Expand Down
2 changes: 1 addition & 1 deletion tests/predator-regre/test-0240.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <stdlib.h>

extern int __VERIFIER_nondet_int(void);
#include <verifier-builtins.h>

struct node {
struct node *next;
Expand Down

0 comments on commit e055f23

Please sign in to comment.