home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 6205 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: god.bel.alcatel.be!nlev00!barnhoorn
  2. From: barnhoorn@nlev00 ()
  3. Newsgroups: comp.lang.c,comp.sys.amiga.programmer
  4. Subject: Re: pointer conversion error
  5. Date: 26 Mar 1996 07:25:49 GMT
  6. Organization: Alcatel Bell
  7. Distribution: world
  8. Message-ID: <4j865t$npa@btmpjg.god.bel.alcatel.be>
  9. References: <4j39n1$mh4@news.xs4all.nl> <676.6658T1354T436@mistral.co.uk>
  10. Reply-To: barnhoorn@nlev00 ()
  11. NNTP-Posting-Host: 138.203.178.61
  12. X-Newsreader: mxrn 6.18-10
  13.  
  14.  
  15. Path: nlev00!barnhoorn
  16. Newsgroups: comp.lang.c,comp.sys.amiga.programmer
  17. From: barnhoorn@nlev00 ()
  18. Distribution: world
  19. X-Newsreader: mxrn 6.18-10
  20. References: <4j39n1$mh4@news.xs4all.nl> <676.6658T1354T436@mistral.co.uk>
  21. Reply-To: barnhoorn@nlev00 ()
  22. Organization: Alcatel Bell
  23. Subject: Re: pointer conversion error
  24.  
  25. In article <676.6658T1354T436@mistral.co.uk>, ghira@mistral.co.uk (Adam Atkinson) writes:
  26. >On 24-Mar-96 10:55:29, Falstaff said:
  27. >>ghira@mistral.co.uk (Adam Atkinson) writes:
  28. >
  29. >>>my c compiler (SAS/C version 6.56) creates a warning about the following:
  30. >
  31. >>>                        printf("%u %u %u \n", i, l, h);
  32. >
  33. >>>three.c 36 Warning 104: conversion from pointer to const/volatile to pointer
  34. >>>to non-const/volatile
  35. >
  36. >>>What am I doing wrong? i,l and h are unsigned longs.
  37. >
  38. >>Seems like the printf() prototype is missing.  #include <stdio.h>
  39. >
  40. >actually, it turns out I should have used %lu not %u. oops
  41. >
  42. .when this is true, then the compiler is actually checking the
  43. string you give as first parameter of printf() !!????? Very strange.
  44.  
  45. -- 
  46. ---------------------------------------------------------------------------
  47. Jaco Barnhoorn               barnie@xs4all.nl
  48. Software Test Engineer       barnhoorn%nlev00@btmv56.se.bel.alcatel.be
  49. Alcatel Telecom Systems
  50. Rijswijk, The Netherlands
  51. ---------------------------------------------------------------------------
  52.  
  53.  
  54.