Re:Some dark corners of C
by cliffbean on Saturday March 09, 2013 @08:52AM
(#5348372)
> 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.
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.