| 1 | Fix -Wimplicit-function-declaration error with gcc 14.
|
| 2 |
|
| 3 | ```
|
| 4 | .build-14155.c: In function 'main':
|
| 5 | .build-14155.c:2:34: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
|
| 6 | 2 | volatile u8 tmp[6]; int main() { printf("%d\n", *(u32*)(tmp+1)); return 0; }
|
| 7 | | ^~~~~~
|
| 8 | .build-14155.c:2:1: note: include '<stdio.h>' or provide a declaration of 'printf'
|
| 9 | 1 | #include "types.h"
|
| 10 | +++ |+#include <stdio.h>
|
| 11 | ```
|
| 12 |
|
| 13 | |
| 14 | |
| 15 | @@ -197,7 +197,7 @@
|
| 16 |
|
| 17 | rm -f "$TMP" "$TMP.c" "$TMP.log" || exit 1
|
| 18 |
|
| 19 | -echo -e "#include \"types.h\"\nvolatile u8 tmp[6]; int main() { printf(\"%d\x5cn\", *(u32*)(tmp+1)); return 0; }" >"$TMP.c" || exit 1
|
| 20 | +echo -e "#include <stdio.h>\n#include \"types.h\"\nvolatile u8 tmp[6]; int main() { printf(\"%d\x5cn\", *(u32*)(tmp+1)); return 0; }" >"$TMP.c" || exit 1
|
| 21 | $CC $USE_CFLAGS $USE_LDFLAGS "$TMP.c" -o "$TMP" &>"$TMP.log"
|
| 22 |
|
| 23 | if [ ! -x "$TMP" ]; then
|