🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1188

Re: GNU finger 1.36 vs. IRIX 4.0 ANSI headers

#1188
From: Simon Leinen
Date: Mon, 12 Oct 1992 13:15
23 lines
1245 bytes
chad@helix1.chem.iastate.edu (chad hoffman) writes:

   util.c: In function strdup:
   util.c:402 : argument 's' doesn't match function prototype

   The section of code in util.c is:

   char *
   strdup(s)
   char *s

The argument of the strdup() function is declared as "const char *" in
/usr/include/string.h under IRIX 4.  Just comment out the whole
definition of strdup in util.c - you already have it in libc.a.

   I've had this problem before and have found that using the Iris's
   standard C compiler doesn't produce this error.

But it should, or at least produce a warning, at least in "-ansi" mode...

Hope this helps,
--
Simon.
Technical Details
Message-ID: <SIMON.92Oct12141527@liasg2.epfl.ch>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!spool.mu.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!lia.di.epfl.CH!simon
References: <9210110553.AA00528@helix1.chem.iastate.edu>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!spool.mu.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!lia.di.epfl.CH!simon
From: simon@lia.di.epfl.CH (Simon Leinen)
Subject: Re: GNU finger 1.36 vs. IRIX 4.0 ANSI headers
Message-ID: <SIMON.92Oct12141527@liasg2.epfl.ch>
Sender: gnulists@ai.mit.edu
Organization: DI-LIA -- Ecole Polytechnique Federale de Lausanne
References: <9210110553.AA00528@helix1.chem.iastate.edu>
Distribution: gnu
Date: Mon, 12 Oct 1992 13:15:27 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 24