🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1965

possible bug

#1965
From: Drazen Borkovic
Date: Wed, 23 Nov 1988 06:38
42 lines
1608 bytes
The compiler issues a warning about the call to
the function "Free" and it does not about one to
the function "G".
  Is this correct?

------------------------------------------------
Script started on Tue Nov 22 22:30:16 1988
!21 -> alias gcc
gcc -ansi -pedantic -Wall -Wwrite-strings
!22 -> gcc -v -S j.c
gcc version 1.31
 /usr/local/lib/gcc-cpp -v -undef -D__GNU__ -D__GNUC__ -T -$ -D__STRICT_ANSI__ -pedantic -Wall -D__HAVE_68881__ -Dmc68020 j.c /tmp/cca16871.cpp
GNU CPP version 1.31
 /usr/local/lib/gcc-cc1 /tmp/cca16871.cpp -quiet -dumpbase j.c -Wall -Wwrite-strings -pedantic -ansi -version -o j.s
GNU C version 1.31 (68k, MIT syntax) compiled by GNU C version 1.31.
j.c: In function f:
j.c:12: warning: argument passing of non-const * pointer from const *
!23 -> cat j.c

	typedef void * void_ptr;

	extern void Free (const void_ptr p);
	extern void G(const void * p);


	int f(void)
	{
  		const char *q;

  		Free(q);
  		G(q);
  		return 1;
	}


!24 -> exit

script done on Tue Nov 22 22:30:51 1988
------------------------------------------------
Drazen Borkovic, Caltech 256-80, Pasadena, CA 91125      
e-mail: drazen@vlsi.caltech.edu 
Technical Details
Message-ID: <8811230638.AA24050@vlsi.caltech.edu>
Path: arc1-ca.pugleaf.net!utzoo!yunexus!telly!ddsw1!mcdchg!rutgers!tut.cis.ohio-state.edu!VLSI.CALTECH.EDU!drazen

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!yunexus!telly!ddsw1!mcdchg!rutgers!tut.cis.ohio-state.edu!VLSI.CALTECH.EDU!drazen
From: drazen@VLSI.CALTECH.EDU (Drazen Borkovic)
Newsgroups: gnu.gcc.bug
Subject: possible bug
Message-ID: <8811230638.AA24050@vlsi.caltech.edu>
Date: 23 Nov 88 06:38:51 GMT
Article-I.D.: vlsi.8811230638.AA24050
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 42