Re: Why does this work? (rot13 function)
From: Larry Doolittle (ldoolitt_at_recycle.lbl.gov)
Date: 12/16/03
- Next message: Joona I Palaste: "Undefined behaviour question"
- Previous message: Joona I Palaste: "Re: Safe subset of C?"
- In reply to: Arthur J. O'Dwyer: "Re: Why does this work? (rot13 function)"
- Next in thread: Larry Doolittle: "Re: Why does this work? (rot13 function)"
- Reply: Larry Doolittle: "Re: Why does this work? (rot13 function)"
- Reply: Eric Sosman: "Re: Why does this work? (rot13 function)"
- Reply: Martin Dickopp: "[OT] gcc and unused parameters (was Re: Why does this work? (rot13 function))"
- Reply: CBFalconer: "Re: Why does this work? (rot13 function)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 16 Dec 2003 20:56:54 +0000 (UTC)
Arthur J. O'Dwyer wrote:
> <OT> Using gcc, it's easy:
> % gcc -W -Wall -ansi -pedantic -O2 mainfile.c rot13.c
> (and any other source files in the project). All the options
> are only there to catch mistakes in your code; if you write
> perfect code, you don't need them. ;-) [In other words, you
> *do* need them. Always.]
></OT>
My biggest complaint about gcc -W -Wall is that it barks at unused
parameters. If someone tells me how to make
int foo(void);
int bar(char*cd)
{
foo();
return 0;
}
standards-conforming, non-bloated, and run past "gcc -W -Wall -ansi -std=c99"
without warnings, I'd like to hear about it. My default set of
flags to gcc now also includes
-Wpointer-arith -Wcast-qual -Wshadow
- Larry
- Next message: Joona I Palaste: "Undefined behaviour question"
- Previous message: Joona I Palaste: "Re: Safe subset of C?"
- In reply to: Arthur J. O'Dwyer: "Re: Why does this work? (rot13 function)"
- Next in thread: Larry Doolittle: "Re: Why does this work? (rot13 function)"
- Reply: Larry Doolittle: "Re: Why does this work? (rot13 function)"
- Reply: Eric Sosman: "Re: Why does this work? (rot13 function)"
- Reply: Martin Dickopp: "[OT] gcc and unused parameters (was Re: Why does this work? (rot13 function))"
- Reply: CBFalconer: "Re: Why does this work? (rot13 function)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|