Subject: Re: gcc-ansi -pedantic and long long on NetBSD
To: T. William Wells <>
From: Perry E. Metzger <>
List: current-users
Date: 11/01/1994 15:39:18
"T. William Wells" says:
> Maintenance is something programmers don't like to think about,
> though the reality is that much of the cost of programs is in
> their maintenance. In a project of any size, the cost of one bug,
> or even one re-coding for portability, that never happens because
> -pedantic was used will vastly outweigh the cost of adhering to
> its requirements.

-pedantic is *not* a linter. -Wall does that. -pedantic just makes
sure you aren't using any constructs (like long long) that aren't
ANSI. -Wall is really the way to find bugs, including ones in
portability. You might want -pedantic just to catch non-ANSIisms, but
if you are trying to get things "clean" you want -Wall.