Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> If your code lacks the declaration of the function, the compiler will assume pre ANSI-C semantics and generate code returning an int.

Better, please help by compiling your C code with -Wimplicit-function-declaration (included in -Wall), and fixing all the problems it reports. Then you won't have to worry about this problem, or a bunch of other problems.



All-too-common response: "Oh, but they're just warnings mumble compiles and runs 'cleanly' mumble..."


    -Wall -Wextra -Werror




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: