ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/10/10/05:11:45

Xref: news-dnh.mv.net comp.os.msdos.djgpp:2523
Path: news-dnh.mv.net!mv!news.sprintlink.net!newsfeed.internetmci.com!usenet.eel.ufl.edu!col.hp.com!sdd.hp.com!vixen.cso.uiuc.edu!uwm.edu!lll-winken.llnl.gov!simtel!swidir.switch.ch!newsfeed.ACO.net!alijku06!news
From: Roland Exler <R DOT Exler AT jk DOT uni-linz DOT ac DOT at>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Prototype Checking
Date: 10 Oct 1995 07:02:47 GMT
Organization: Institute for el. Measurement, University of Linz, Austria
Lines: 21
References: <DG2uJt DOT 5Kp AT jade DOT mv DOT net>
Nntp-Posting-Host: sensor4.emt.uni-linz.ac.at
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

"Nathan L. Cutler" <library AT ssd DOT anet DOT cz> wrote:
>I am going through a C tutorial that is very good but quite old.  One of the
>things it is telling me to do is to enable prototype checking with my
>compiler.  I am using djgpp.  (1) is it actually necessary to turn on proto-
>type checking with gcc? and (2) what is the command-line extension to do so?

With djgpp(gcc) just turn on flag -Wall, which gives a lot of useful 
warnings, including function-calls without prototypes. More flags are 
explained in the docs (info or printed-version).

Roland

+---------------------------------------+---------------------------+
I Roland Exler                          I EMAIL:                    I
I Universitaet Linz                     I R DOT Exler AT jk DOT uni-linz DOT ac DOT at I
I Institut fuer Elektrische Messtechnik I                           I
I Altenbergerstr. 69                    I Phone:                    I
I A-4040 Linz, AUSTRIA                  I + 43 732 2468 9205        I
+---------------------------------------+---------------------------+


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019