Skip to content

Commit

Permalink
C library: declare malloc
Browse files Browse the repository at this point in the history
In model-checking#1812 we removed standard library includes and instead provided
forward declarations of `free`, `calloc`, and `memcpy` -- but seemingly
forgot to include `malloc`, which we also use.

This avoids a warning seen when dialling up `goto-cc` verbosity.
  • Loading branch information
tautschnig committed Jun 27, 2024
1 parent 997c95c commit 5f04078
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/kani/kani_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
void free(void *ptr);
void *memcpy(void *dst, const void *src, size_t n);
void *calloc(size_t nmemb, size_t size);
void *malloc(size_t size);

typedef __CPROVER_bool bool;

Expand Down

0 comments on commit 5f04078

Please sign in to comment.