[Coco] Oneliners
John R. Hogerhuis
jhoger at pobox.com
Mon Sep 19 18:53:40 EDT 2005
On Mon, 2005-09-19 at 17:27 -0500, Dave Kelly wrote:
> Evidently my linux system doesn't like the way you code. I must talk to
> it sternly.
>
> Wasn't this exact warning I got in the old 10 commandments of C programming?
>
>
> SilverNail:~/documents# gcc line1.c
> line1.c: In function `main':
> line1.c:1: warning: assignment makes integer from pointer without a cast
> line1.c:1: warning: passing arg 1 of `printf' makes pointer from integer
> without a cast
> SilverNail:~/documents# cat line1.c
> main(a) {a="main(a) {a=%c%s%c;printf(a,34,a,34);}";printf(a,34,a,34);}
> SilverNail:~/documents#
>
>
Warnings are for suckers. My custom gcc jumps straight to the beating.
-- John.
More information about the Coco
mailing list