Why not cast the rerurn from malloc()? 
Author Message
 Why not cast the rerurn from malloc()?


>> > 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

>>>>>>>>>>>>> I use *SpamBeGone* <URL: http://www.*-*-*.com/ ;

Fri, 14 Jul 2000 03:00:00 GMT  
 [ 31 post ]  Go to page: [1] [2] [3]

 Relevant Pages 

Powered by phpBB® Forum Software