home *** CD-ROM | disk | FTP | other *** search
- Path: news.tau.ac.il!usenet
- From: "Avi L." <avil@sapiens.com>
- Newsgroups: comp.lang.c,comp.sys.amiga.programmer
- Subject: Re: pointer conversion error
- Date: Thu, 28 Mar 1996 10:03:17 +0200
- Organization: Sapiens Tech.
- Message-ID: <315A47C5.4D99@sapiens.com>
- References: <381.6657T11T967@mistral.co.uk>
- NNTP-Posting-Host: honda.sapiens.co.il
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.01 (WinNT; I)
-
- Adam Atkinson wrote:
- >
- > my c compiler (SAS/C version 6.56) creates a warning about the following:
- >
- > printf("%u %u %u \n", i, l, h);
- >
- > three.c 36 Warning 104: conversion from pointer to const/volatile to pointer to non-const/volatile
- >
- > What am I doing wrong? i,l and h are unsigned longs.
- >
- > Adam Atkinson - ghira@mistral.co.uk / etlaman@etlxdmx.ericsson.se
- > Viva la pappa col pomodoro!
-
- well the problem obviously isn't on that line since you're not using any
- pointers at all, the problem might be (and probably is) on the previous line.
- compilers tend not to report the exact line in which the error/warning
- actually happened but the following line instead. i must say that the
- other answers i've read made me laugh at how stupid they were i mean, what
- the hell does a prototype have to do with this problem anyway?
-
- well, hope this helps and if not then just ignore the warning it won't kill
- ya.
-
- Avi Lev.
-