[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: GCC ignores mismatched prototypes involving integers



* Justin Pryzby:

> 	st7ctl.h:void drift();

This is not a prototype.  In C, prototypes for function taking zero
parameters look like this:

 	st7ctl.h:void drift(void);

The reason is compatibility with K&R C.

(Does anybody know to which bug trackers Justin's message was sent?
Isn't gcc-gnats@ non-operational these days?)



Reply to: