R
Richard Heathfield
Alexander said:begin followup to Richard Bos:
Let's see if I understand this right.
The danger is that the diagnostic
initialization makes pointer from integer without a cast
is mandatory for a conforming compiler, while
implicit declaration of function `malloc'
is not.
Not in C99 (which is the scenario under consideration), because implicit
function declarations were removed in C99.
I think Richard Bos is making a valid *philosophical* point. The cast
remains inadvisable, even though in C99 it will no longer mask the omission
of <stdlib.h>. I agree with him that the cast is inadvisable, but I'd
hesitate to use the word "dangerous" in a C99 context.