fixed compiler warnings.
authorkramm <kramm>
Sun, 21 Apr 2002 16:17:16 +0000 (16:17 +0000)
committerkramm <kramm>
Sun, 21 Apr 2002 16:17:16 +0000 (16:17 +0000)
lib/modules/swfaction.c
lib/modules/swfsound.c
lib/modules/swftext.c

index c20e491..933410d 100644 (file)
@@ -312,7 +312,7 @@ void swf_DumpActions(ActionTAG*atag, char*prefix)
                } break;
                case 'p': {
                    U8 type = *data;
-                   char*value = data+1;
+                   unsigned char*value = data+1;
                    if(type == 0) {
                        printf(" String:\"%s\"", value);
                    } else if (type == 1) {
index 5f08150..d08026b 100644 (file)
@@ -47,11 +47,10 @@ void swf_SetSoundStreamBlock(TAG*tag, S16*samples, int numsamples, char first)
     char*buf;
     int len = 0;
 
+    buf = malloc(init->bufferSize);
     if(!buf)
        return;
     
-    buf = malloc(init->bufferSize);
-    
     len = codecEncodeChunk (numsamples, samples, buf);
     len += codecFlush (&buf[len]);
     len += codecExit (&buf[len]);
index e5901cb..5ebe89f 100644 (file)
@@ -80,7 +80,7 @@ int swf_FontExtract_DefineFont(int id,SWFFONT * f,TAG * t)
 
   fid = swf_GetU16(t);
   if ((!id)||(id==fid))
-  { U16 of,*ofs;
+  { U16 of;
     int n,i;
       
     id = fid;
@@ -392,7 +392,7 @@ int swf_FontExtract(SWF * swf,int id,SWFFONT * * font)
 int swf_FontSetID(SWFFONT * f,U16 id) { if (!f) return -1; f->id = id; return 0; }
 
 int swf_FontReduce(SWFFONT * f,FONTUSAGE * use)
-{ int i,j,num;
+{ int i,j;
   if ((!f)||(!use)) return -1;
 
   j = 0;
@@ -927,7 +927,8 @@ void swf_WriteFont(SWFFONT*font, char* filename)
            rgb.b = 0x00;
            for(y=0;y<=((font->maxascii-1)/16);y++)
            {
-               int c=0,lastx=-1, firstx=0;
+               int c=0,lastx=-1;
+               /* TODO: firstx?? */
                for(x=0;x<16;x++) {
                    int g = (y*16+x<font->maxascii)?font->ascii2glyph[y*16+x]:-1;
                    if(g>=0 && font->glyph[g].shape) {