home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / gcc / help / 1789 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.4 KB  |  48 lines

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!usc!rpi!clarkson!grape.ecs.clarkson.edu!jensen
  3. From: jensen@sun.soe.clarkson.edu (Jim Jensen)
  4. Subject: memory.h - warning: conflicting types
  5. Message-ID: <JENSEN.92Jul28101401@sun.clarkson.edu>
  6. Sender: news@news.clarkson.edu
  7. Nntp-Posting-Host: sun.soe.clarkson.edu
  8. Organization: Clarkson University, Potsdam NY
  9. Distribution: gnu
  10. Date: Tue, 28 Jul 1992 15:14:01 GMT
  11. Lines: 35
  12.  
  13.  
  14.  
  15. Running gcc-2.2.2 on  a Sun 670MP, SunOS 4.1.2, I get the following
  16. warning message:
  17. --
  18. In file included from justcorr.c:12:
  19. /usr/local/lib/gcc-lib/sun4/2.1/include/memory.h:9: warning: conflicting types for built-in function `memcpy'
  20. --
  21.  
  22. This is generated by the following code:
  23. --
  24. /*    
  25. /    computing the correlation of the received signal and
  26. /    the replicas
  27. /
  28. */                           
  29.  
  30. #include <stdio.h>   
  31. #include <math.h> 
  32. #ifdef sgi
  33. #    include <string.h>
  34. #else                
  35. #    include <memory.h>
  36. #endif
  37. --
  38. Apparently SunOS declares memcpy as a extern char *.  It would seem
  39. that I could put a different version of memory.h in the
  40. /usr/local/lib/gcc-lib/sun4/2.1/include/ directory with the correct
  41. cast for memcpy(), but I can't figure out what it is supposed to be...
  42. Any suggesestions on the best way to fix this would be appreciated,
  43. although it will work as is, so don't waste too much time on it.
  44.  
  45.       Thanks,
  46.     Jim Jensen             (410) 247-0700
  47.     jensen\%mmlai@uunet.uu.net  or jensen@sun.soe.clarkson.edu
  48.