🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #123

Re: preprocessing subterfuge

#123
From: Conor O'Neill
Date: Mon, 10 Aug 1992 14:36
27 lines
1408 bytes
In article <1992Aug10.031337.4424@druid.uucp> darcy@druid.uucp (D'Arcy J.M. Cain) writes:
>enag@ifi.uio.no (Erik Naggum) writes:
>>Sigh.  Where can I get a compiler which rejects non-conforming code?
>>Call it an educational tool more than a production tool, if you like.
>
>Gnu C with -Wall -ansi -pedantic has a pretty tight sphincter.

Yes, but remember that what many of us consider to be "Errors",
gcc often calls a "Warning", so treat _all_ warnings as errors. Eg:

% gcc -v
gcc version 1.36

% cat -n c.c
     1  int f(char *c)
     2  {
     3    return c;
     4  }

% gcc -c -Wall -ansi -pedantic c.c
c.c: In function f:
c.c:3: warning: return of integer from pointer lacks a cast

---
Conor O'Neill, Software Group, INMOS Ltd., UK.
UK: conor@inmos.co.uk		US: conor@inmos.com
"It's state-of-the-art" "But it doesn't work!" "That is the state-of-the-art".
Technical Details
Message-ID: <1992Aug10.143623.21998@inmos.co.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!inmos!news
References: <MJN.92Aug9024600@pseudo.uucp> <1992Aug9.144525.4521@taumet.com> <23277A@erik.naggum.no> <1992Aug10.031337.4424@druid.uucp>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!sparky!uunet!inmos!news
From: conor@lion.inmos.co.uk (Conor O'Neill)
Subject: Re: preprocessing subterfuge
Message-ID: <1992Aug10.143623.21998@inmos.co.uk>
Sender: news@inmos.co.uk (The Usenet News System)
Reply-To: conor@inmos.co.uk (Conor O'Neill)
Organization: INMOS Limited, Bristol, UK.
References: <MJN.92Aug9024600@pseudo.uucp> <1992Aug9.144525.4521@taumet.com> <23277A@erik.naggum.no> <1992Aug10.031337.4424@druid.uucp>
Date: Mon, 10 Aug 1992 14:36:23 GMT
Lines: 27