Mail Archives: djgpp/2002/02/02/07:00:22
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f
|
From: | "Philip Pemberton" <philpem AT bigfoot DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Help: warning: passing arg ... of ... discards qualifiers from pointer target type
|
Date: | Sat, 2 Feb 2002 11:49:48 -0000
|
Lines: | 52
|
Message-ID: | <a3gjht$1863jp$1@ID-122086.news.dfncis.de>
|
NNTP-Posting-Host: | 213.122.186.39
|
X-Trace: | fu-berlin.de 1012650366 42143353 213.122.186.39 (16 [122086])
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Newsreader: | Microsoft Outlook Express 5.50.4133.2400
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Hi,
I'm trying to create an emulator for the Multitech Micro-Professor
MPF-IB and I'm having a few problems with Djgpp. If I try to build the code,
I end up with the following error output from my makefile:
---8<---CUT HERE---8<---
gcc -Wall -O3 -m486 -c -o mpf.o mpf.c
mpf.c: In function `drawLEDSeg':
mpf.c:61: warning: passing arg 3 of `polygon' discards qualifiers from
pointer target type
mpf.c:68: warning: passing arg 3 of `polygon' discards qualifiers from
pointer target type
mpf.c:75: warning: passing arg 3 of `polygon' discards qualifiers from
pointer target type
mpf.c:82: warning: passing arg 3 of `polygon' discards qualifiers from
pointer target type
mpf.c:89: warning: passing arg 3 of `polygon' discards qualifiers from
pointer target type
mpf.c:96: warning: passing arg 3 of `polygon' discards qualifiers from
pointer target type
mpf.c:103: warning: passing arg 3 of `polygon' discards qualifiers from
pointer target type
gcc mpf.o emuutils.o raze.o -o mpf.exe -lalleg
---8<---CUT HERE---8<---
Someone care to explain this? I've managed to create a short program that
demonstrates this.
Compiler cmdline:
gcc -o temp.exe temp.c -lalleg
---8<---CUT HERE---8<--- TEMP.C
#include "allegro.h"
#include "conio.h"
const int points[12] = {1,2,3,4,5,6,7,8,9,10,11,12};
int main()
{
allegro_init();
polygon(screen, 6, points, 15);
getch();
}
---8<---CUT HERE---8<--- TEMP.C
Thanks.
--
Phil.
philpem AT bigfoot DOT com
http://www.philpem.btinternet.co.uk/
- Raw text -