According to the ANSI C standard, functions' respective arguments have
to be compatible for the function types to be compatible (6.7.5.3).
However, the following declarations
void p(int p[30]);
void p(int p[4]);
do not yield a warning.
--
Mikoláš Janota M. Sc.
School of Computer Science and
Mikoláš Janota [EMAIL PROTECTED] writes:
However, the following declarations
void p(int p[30]);
void p(int p[4]);
do not yield a warning.
See 6.7.5.3#7.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key
Thanks Andreas pointing me to part of the standard that I have missed.
However, is it crystal clear in the following parts of the document we
are talking about parameters and a return type *after adjustment*?
To be honest, I would still vote for at least a warning. After all,
what is the point