Julien Voisin
|
6ce663a8bd
|
Fix -Wimplicit-function-declaration error with gcc 14.
```
malloc_info.c: In function 'leak_memory':
malloc_info.c:12:12: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
12 | (void)!malloc(1024 * 1024 * 1024);
| ^~~~~~
malloc_info.c:10:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
9 | #include "../util.h"
+++ |+#include <stdlib.h>
10 |
malloc_info.c:12:12: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
12 | (void)!malloc(1024 * 1024 * 1024);
| ^~~~~~
```
Taken from https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/72971/
Co-authored-by: @mio
|
2024-10-03 23:44:15 -04:00 |
jvoisin
|
b511696c55
|
clean up includes and remove non-portable includes
This marginally increases the portability of hardened_malloc,
eg. on OSX.
|
2022-02-07 07:14:51 -05:00 |
jvoisin
|
001eb0687b
|
Fix an unused parameter warning
|
2022-01-04 12:16:53 -05:00 |
jvoisin
|
75952581ee
|
Silence a GCC warning
As suggested in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425#c34
|
2021-12-27 06:22:32 -05:00 |
jvoisin
|
9966adbdad
|
Add another ifdef for GNU extension
|
2021-12-23 14:45:43 -05:00 |
Daniel Micay
|
de3fb50dcc
|
tests: make no-optimize attribute Clang compatible
|
2020-06-17 20:08:46 -04:00 |
Daniel Micay
|
b40ba9754b
|
add malloc_info test
|
2019-05-05 08:37:55 -04:00 |