Closed quincyf467 closed 2 months ago
patch.c: In function ‘attr_as_unsigned’:
patch.c:49:16: error: implicit declaration of function ‘strtoul’; did you mean ‘strtok’? [-Wimplicit-function-declaration[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-function-declaration]]
49 | return strtoul((char*)value, NULL, 10);
| ^~~
| strtok
patch.c: In function ‘patch_load’:
patch.c:89:25: error: implicit declaration of function ‘calloc’ [-Wimplicit-function-declaration[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-function-declaration]]
89 | patch = calloc(1, sizeof(struct patch));
| ^~
patch.c:37:8: note: include ‘~
patch.c:89:25: note: include ‘~~~~~~~~
sahara.c: In function ‘sahara_eoi’:
sahara.c:182:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wno-unused-result]]
182 | write(fd, &done, done.length);
| ^~~~~~~~~
program.c: In function ‘attr_as_unsigned’:
program.c:51:16: error: implicit declaration of function ‘strtoul’; did you mean ‘strtok’? [-Wimplicit-function-declaration[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-function-declaration]]
51 | return strtoul((char*)value, NULL, 10);
| ^~~
| strtok
program.c: In function ‘program_load’:
program.c:105:27: error: implicit declaration of function ‘calloc’ [-Wimplicit-function-declaration[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-function-declaration]]
105 | program = calloc(1, sizeof(struct program));
| ^~
program.c:39:8: note: include ‘~
program.c:105:27: note: include ‘
this happens in version 1.0 and also on the latest commit
this fails to compile using gcc-14 without including stdlib.h in the following files.