
lint warning "function actually returns double"
Quote:
>Can somebody explain to me why I keep getting the lint warning
> /usr/local/include/some_file.h (as included in any_file.c)
> =================
> warning: function actually returns double: some_func
>while the function really is declared as
> float some_func(void);
>in the header file?
Because your lint understands "extended" K&R C, and in K&R C a function
cannot return float. Even an ANSI C compiler could return a double
instead of a float, your program will never be able to tell the difference.
Dan
--
Dan Pop
CERN, CN Division
Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland