From: SourceForge.net <no...@so...> - 2011-05-14 13:29:18
|
Bugs item #3209173, was opened at 2011-03-13 21:55 Message generated for change (Comment added) made by maartenbrock You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3209173&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: C-Front End >Group: fixed >Status: Closed >Resolution: Duplicate Priority: 5 Private: No Submitted By: wek (wek_) >Assigned to: Maarten Brock (maartenbrock) Summary: enum leading to warning 185 Initial Comment: The following code: enum { ENUM0, ENUM1 }; enum { ENUM0a = 0 }; volatile unsigned char a; void main(void) { if (a == ENUM0); // only this line triggers warning 185 if (a == ENUM1); if (a == ENUM0a); } leads to: c:\tmp>sdcc bug.c bug.c:13: warning 185: comparison of 'signed char' with 'unsigned char' requires promotion to int c:\tmp>sdcc --version SDCC : mcs51/gbz80/z80/ds390/pic16/pic14/TININative/ds400/hc08 3.0.1 #6274 (Mar12 2011) (MINGW32) This may be related to http://sourceforge.net/tracker/index.php?func=detail&aid=3117721&group_id=599&atid=100599 Jan Waclawek ---------------------------------------------------------------------- >Comment By: Maarten Brock (maartenbrock) Date: 2011-05-14 15:29 Message: This is indeed was the same bug as 3117721 and is now fixed in SDCC 3.0.2 #6515. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3209173&group_id=599 |