🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #178

memory.h - warning: conflicting types

#178
From: Jim Jensen
Date: Tue, 28 Jul 1992 15:14
35 lines
1513 bytes

Running gcc-2.2.2 on  a Sun 670MP, SunOS 4.1.2, I get the following
warning message:
--
In file included from justcorr.c:12:
/usr/local/lib/gcc-lib/sun4/2.1/include/memory.h:9: warning: conflicting types for built-in function `memcpy'
--

This is generated by the following code:
--
/*    
/	computing the correlation of the received signal and
/	the replicas
/
*/                           

#include <stdio.h>   
#include <math.h> 
#ifdef sgi
#	include <string.h>
#else                
#	include <memory.h>
#endif
--
Apparently SunOS declares memcpy as a extern char *.  It would seem
that I could put a different version of memory.h in the
/usr/local/lib/gcc-lib/sun4/2.1/include/ directory with the correct
cast for memcpy(), but I can't figure out what it is supposed to be...
Any suggesestions on the best way to fix this would be appreciated,
although it will work as is, so don't waste too much time on it.

	  Thanks,
	Jim Jensen             (410) 247-0700
	jensen\%mmlai@uunet.uu.net  or jensen@sun.soe.clarkson.edu
Technical Details
Message-ID: <JENSEN.92Jul28101401@sun.clarkson.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!usc!rpi!clarkson!grape.ecs.clarkson.edu!jensen

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!usc!rpi!clarkson!grape.ecs.clarkson.edu!jensen
From: jensen@sun.soe.clarkson.edu (Jim Jensen)
Subject: memory.h - warning: conflicting types
Message-ID: <JENSEN.92Jul28101401@sun.clarkson.edu>
Sender: news@news.clarkson.edu
Nntp-Posting-Host: sun.soe.clarkson.edu
Organization: Clarkson University, Potsdam NY
Distribution: gnu
Date: Tue, 28 Jul 1992 15:14:01 GMT
Lines: 35