🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2579

Re: include file checking

#2579
From: K Goldman
Date: Fri, 12 Apr 1996 13:19
23 lines
1342 bytes
schwab@lamothe.informatik.uni-dortmund.de (Andreas Schwab) writes:
|> kgold@watson.ibm.com (K Goldman) writes:
|> 
|> |> My compiler seems to check function prototypes if they exist, but
|> |> is just as happy to not have them.  Therefore . . .
|> 
|> |> Is there an automated way to insure that I have included all the
|> |> header files that I need in my source code?
|> 
|> You don't say which compiler you use, but if you use GCC you can
|> enable -Wmissing-prototypes, -Wstrict-prototypes,
|> -Wmissing-declarations, and/or -Wimplicit, depending on what you want
|> to check for.
|> 

Sorry.  It's xlc, which is the ANSI version of cc, on an IBM RS/6000
running AIX 3.2.5.

I _did_ read the manual, and the man page, and the on-line help,
and there doesn't seem to be a switch to check for prototypes.

-- 
Ken Goldman   kgold@watson.ibm.com   914-784-7396
Technical Details
Message-ID: <4kll8t$o4r@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4khl1h$stq@solutions.solon.com> <4kjkh7$bo6@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: kgold@watson.ibm.com (K Goldman)
Newsgroups: comp.lang.c.moderated
Subject: Re: include file checking
Date: 12 Apr 1996 08:19:25 -0500
Organization: IBM T.J. Watson Research Center
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4kll8t$o4r@solutions.solon.com>
References: <4khl1h$stq@solutions.solon.com> <4kjkh7$bo6@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com