delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/23/14:33:41

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "Glenn Jarvis" <gaj AT onlink DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Question
Date: Sat, 23 Feb 2002 14:12:37 -0500
Organization: Ontario Northland--ONLink
Lines: 122
Message-ID: <a58pd3$dq2$1@onlink3.onlink.net>
References: <a561vp$cd4$1 AT onlink3 DOT onlink DOT net> <3C76A2A6 DOT D4B4B3BF AT yahoo DOT com> <200202222148 DOT g1MLm0h23431 AT envy DOT delorie DOT com>
NNTP-Posting-Host: blnd200-2.onlink.net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"DJ Delorie" <dj AT delorie DOT com> wrote in message
news:200202222148 DOT g1MLm0h23431 AT envy DOT delorie DOT com...
>
> The User's Guide also has a few sections on porting from "other
> things" to djgpp:
>
> http://www.delorie.com/djgpp/doc/ug/

Thanks DJ. I went there and got them and bookmarked it for future use. Below
is what has shown when I attempted to compile .Funny part is, I turned on
the error checking in
Watcom to the highest level and got the same thing.
I didn't write this code, ( It came with a book) and I'm
somewhat confused as to why these variables were placed
in the code when they are not used... <scratching head>  :)
I also had to remove a bunch of funny characters from the code that were
inserted by the author's editor.... Gcc hated those funny little gaffers :-)


ackview.c: In function `BuildSlice':
ackview.c:365: warning: unused variable `yp1'
ackview.c:365: warning: unused variable `xp1'
ackview.c:365: warning: unused variable `HoldY'
ackview.c:365: warning: unused variable `HoldX'
ackview.c:365: warning: unused variable `HoldAngle'
ackview.c:362: warning: unused variable `LightAdj'
ackview.c:359: warning: unused variable `xDistance'
ackview.c:357: warning: unused variable `xBitmap'
ackview.c:358: warning: `DoorOpenColumn' might be used uninitialized in this
function
ackview.c:363: warning: `BitmapColumn' might be used uninitialized in this
function
ackview.c:367: warning: `mPos' might be used uninitialized in this function
ackview.c:369: warning: `gPtr' might be used uninitialized in this function
ackview.c:370: warning: `mgPtr' might be used uninitialized in this function
ackview.c: In function `BuildSliceMulti':
ackview.c:699: warning: unused variable `offset'
ackview.c:698: warning: unused variable `yp1'
ackview.c:698: warning: unused variable `xp1'
ackview.c:698: warning: unused variable `HoldY'
ackview.c:698: warning: unused variable `HoldX'
ackview.c:698: warning: unused variable `HoldAngle'
ackview.c:697: warning: unused variable `OldMapPosn1'
ackview.c:697: warning: unused variable `OldMapPosn'
ackview.c:695: warning: unused variable `LightAdj'
ackview.c:691: warning: unused variable `xDistance'
ackview.c:690: warning: unused variable `xWallHeight'
ackview.c:689: warning: unused variable `DoorOpenColumn'
ackview.c:686: warning: unused variable `index'
ackview.c:686: warning: unused variable `j'
ackview.c:688: warning: `xBitmap' might be used uninitialized in this
function
ackview.c:688: warning: `BitmapNumber' might be used uninitialized in this
function
ackview.c:696: warning: `BitmapColumn' might be used uninitialized in this
function
ackview.c:700: warning: `mPos' might be used uninitialized in this function
ackview.c:702: warning: `mgPtr' might be used uninitialized in this function
ackview.c: In function `SetupFloors':
ackview.c:1085: warning: unused variable `Lasty'
ackview.c:1085: warning: unused variable `Lastx'
ackview.c:1084: warning: unused variable `dist'
ackview.c:1084: warning: unused variable `y'
ackview.c:1084: warning: unused variable `x'
ackview.c:1083: warning: unused variable `scan1'
ackview.c:1081: warning: unused variable `ht1'
ackview.c:1080: warning: unused variable `a'
ackview.c: In function `AckDrawFloorHz':
ackview.c:1144: warning: unused variable `xyPtr'
ackview.c:1143: warning: unused variable `yp'
ackview.c:1143: warning: unused variable `xp'
ackview.c:1143: warning: unused variable `Rwdist'
ackview.c:1143: warning: unused variable `Rbcol'
ackview.c:1142: warning: unused variable `by'
ackview.c:1142: warning: unused variable `bx'
ackview.c:1140: warning: unused variable `va1'
ackview.c:1139: warning: unused variable `Rba1'
ackview.c:1139: warning: unused variable `Rba'
ackview.c:1138: warning: unused variable `Rcscr'
ackview.c:1138: warning: unused variable `RscrCeil'
ackview.c:1138: warning: unused variable `Rfscr'
ackview.c:1138: warning: unused variable `Rscr'
ackview.c:1136: warning: unused variable `i'
ackview.c:1142: warning: `x' might be used uninitialized in this function
ackview.c:1142: warning: `y' might be used uninitialized in this function
ackview.c: In function `AckDrawOneFloor':
ackview.c:1377: warning: unused variable `bCode'
ackview.c:1375: warning: unused variable `xyPtr'
ackview.c:1374: warning: unused variable `yp'
ackview.c:1374: warning: unused variable `xp'
ackview.c:1374: warning: unused variable `Rwdist'
ackview.c:1374: warning: unused variable `Rbcol'
ackview.c:1373: warning: unused variable `by'
ackview.c:1373: warning: unused variable `bx'
ackview.c:1371: warning: unused variable `va1'
ackview.c:1370: warning: unused variable `Rba1'
ackview.c:1370: warning: unused variable `Rba'
ackview.c:1369: warning: unused variable `Rcscr'
ackview.c:1369: warning: unused variable `RscrCeil'
ackview.c:1369: warning: unused variable `Rfscr'
ackview.c:1369: warning: unused variable `Rscr'
ackview.c:1367: warning: unused variable `i'
ackview.c:1373: warning: `x' might be used uninitialized in this function
ackview.c:1373: warning: `y' might be used uninitialized in this function
ackview.c: In function `FindObject':
ackview.c:1668: warning: assignment from incompatible pointer type
ackview.c:1659: warning: unused variable `pTable'
ackview.c:1658: warning: unused variable `ScreenBuffer'
ackview.c:1657: warning: unused variable `wht'
ackview.c:1653: warning: unused variable `MaxObjs'
ackview.c:1652: warning: unused variable `hoff'
ackview.c:1652: warning: unused variable `vidht'
ackview.c:1652: warning: unused variable `vidwt'
ackview.c:1650: warning: unused variable `ColBeg'
ackview.c:1650: warning: unused variable `MaxOpp'
ackview.c:1649: warning: unused variable `LightFlag'
ackview.c:1649: warning: unused variable `NewY'
ackview.c:1647: warning: unused variable `SaveCenter'



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019