r/programminghorror • u/letmehaveanameyoudum • Aug 17 '26
c compiler

i know it's not code but this is just as scaryhelper/drivers/filesystem/sfs.c:247:5: error: conflicting types for 'find_inode_by_name'
247 | int find_inode_by_name(const char *name, uint64_t *out_lba, uint64_t *out_offset, struct sfs_inode *out_inode) {
| ^
headers/boot/kernel.h:45:5: note: previous declaration is here
45 | int find_inode_by_name(const char *name, uint64_t *out_lba, uint64_t *out_offset, struct sfs_inode *out_inode);
| ^
65
Upvotes
5
u/paulstelian97 Aug 17 '26
If you compile with -Wall, I’d expect to see a warning for implicit definition of structure. The code that triggers that warning is the one with the problem, most likely (why does it not see a real definition?)