simh help?

From: Alexander Schreiber <als_at_thangorodrim.de>
Date: Sun Jun 1 15:01:01 2003

On Thu, May 29, 2003 at 03:44:52PM -0400, Sean 'Captain Napalm' Conner wrote:
> It was thus said that the Great Kevin Handy once stated:
> >
> > That assumption started in the first versions of Unix on the PDP11, and
> > still occurrs in new code. It's part of what was once called the
> > "all the worlds a VAX" mentality.
> >
> > Make sure you have all warnings turned on when you compile (look for
> > the CC definition), under gcc the option would be '-Wall'. Maybe it will
> > point at something obvious.
>
> Also try:
>
> gcc -Wall -ansi -pedantic
>
> Be prepared for *lots* of warnings.
>
> -spc (I mean, lots)

That isn't all - you can turn it up some more. One of my small C
projects has a list of gcc-options explicitly built for maximum anal
retentive mode of the gcc:

-ansi -Wall -pedantic -Wtraditional -Wpointer-arith -Wshadow
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual
-Waggregate-return -Wmissing-declarations -Wnested-externs -Winline
-Werror -W

This make gcc complain about practically everything looking even
remotely funny - only way to get more complaints would probably be to
use a real lint.

It can be annoying as hell, but I really find it helpful during
development.

Regards,
       Alex.
-- 
"Opportunity is missed by most people because it is dressed in overalls and
 looks like work."                                      -- Thomas A. Edison
Received on Sun Jun 01 2003 - 15:01:01 BST

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:36:07 BST