Mercurial > audlegacy-plugins
changeset 2239:224ebe9caaac
eliminate warnings
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Mon, 17 Dec 2007 18:35:35 +0900 |
parents | 240bdf781ad0 |
children | 31e6845e722a |
files | src/adplug/adplug-xmms.cc src/adplug/core/dmo.cxx src/adplug/core/jbm.cxx |
diffstat | 3 files changed, 15 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/adplug/adplug-xmms.cc Mon Dec 17 18:04:53 2007 +0900 +++ b/src/adplug/adplug-xmms.cc Mon Dec 17 18:35:35 2007 +0900 @@ -139,6 +139,7 @@ return GTK_WIDGET (label); } +#if 0 static void MessageBox (const char *title, const char *text, const char *button) { @@ -158,6 +159,7 @@ free (tmptxt); free (tmpbutton); } +#endif /***** Dialog boxes *****/
--- a/src/adplug/core/dmo.cxx Mon Dec 17 18:04:53 2007 +0900 +++ b/src/adplug/core/dmo.cxx Mon Dec 17 18:35:35 2007 +0900 @@ -349,8 +349,10 @@ if (opos + cx >= oend) return -1; - for (int i = 0; i < cx; i++) - *opos++ = *(opos - ax); + for (int i = 0; i < cx; i++) { + *opos = *(opos - ax); + opos++; + } continue; } @@ -370,8 +372,10 @@ if (opos + bx + cx >= oend) return -1; - for (i = 0; i < cx; i++) - *opos++ = *(opos - ax); + for (i = 0; i < cx; i++) { + *opos = *(opos - ax); + opos++; + } for (i = 0; i < bx; i++) *opos++ = *ipos++; @@ -395,8 +399,10 @@ if (opos + ax + cx >= oend) return -1; - for (i = 0; i < cx; i++) - *opos++ = *(opos - bx); + for (i = 0; i < cx; i++) { + *opos = *(opos - bx); + opos++; + } for (i = 0; i < ax; i++) *opos++ = *ipos++;
--- a/src/adplug/core/jbm.cxx Mon Dec 17 18:04:53 2007 +0900 +++ b/src/adplug/core/jbm.cxx Mon Dec 17 18:35:35 2007 +0900 @@ -75,7 +75,7 @@ // Allocate memory buffer m[] and read entire file into it m = new unsigned char[filelen]; - if (f->readString((char *)m, filelen) != filelen) goto loaderr; + if (f->readString((char *)m, filelen) != (unsigned int)filelen) goto loaderr; fp.close(f);