
Why not cast the rerurn from malloc()?
Quote:
>> > Even "gcc -ansi -pedantic" silently swallows it.
>> Yes, it "even swallows it" in minimum warning mode.
>Incorrect. '-ansi -pedantic' activates every diagnostic required by the
>standard, and turns off every diagnostic -not- required. Adding, say,
>'-Wall' (which would detect the error, btw) makes 'gcc' non-conformant.
Really? A hosted implementation is conforming so long as it accepts any
strictly conforming program. Does this mean it has to do so without
issuing any diagnostic? Or, are you saying that gcc -ansi -pedantic -Wall
will cause some strictly conforming programs to not compile at all?
--
http://www.*-*-*.com/ ~jxh/ Washington University in Saint Louis
Quote:
>>>>>>>>>>>>> I use *SpamBeGone* <URL: http://www.*-*-*.com/ ;