From d68c5b5c60449094852f867d4af3dfbc35c8a74a Mon Sep 17 00:00:00 2001 From: kramm Date: Sat, 16 Feb 2002 19:36:24 +0000 Subject: [PATCH] fixed warnings. --- src/flash.c | 1 + src/flash.h | 6 ++++++ src/swfcombine.c | 2 ++ src/swfextract.c | 1 + src/swfstrings.c | 1 + 5 files changed, 11 insertions(+) diff --git a/src/flash.c b/src/flash.c index 914f985..7c73397 100644 --- a/src/flash.c +++ b/src/flash.c @@ -89,6 +89,7 @@ struct GRADIENT readGRADIENT(struct reader_t*r, int shape) else gradient.rgba[t] = readRGBA(r); } + return gradient; } struct RECT readRECT(struct reader_t*reader) diff --git a/src/flash.h b/src/flash.h index 27d31a8..e518b73 100644 --- a/src/flash.h +++ b/src/flash.h @@ -12,6 +12,7 @@ #include "types.h" #include "../lib/rfxswf.h" +#include "../lib/log.h" #define TAGID_END 0 #define TAGID_SHOWFRAME 1 @@ -121,6 +122,8 @@ struct CLIPACTIONS readCLIPACTIONS(); void writeRECT(u8**pos, struct RECT*r); void swf_init(struct reader_t*,uchar*newdata, int newlength); +void MATRIX_init(struct MATRIX*m); + struct flash_header { int version; @@ -186,6 +189,7 @@ void placeobject_init (struct PlaceObject*obj, struct swf_tag*tag); void placeobject_write (struct PlaceObject*obj, struct writer_t*w); void placeobject2_init (struct PlaceObject2*obj, struct swf_tag*tag); +void placeobject2_write (struct PlaceObject2*obj, struct writer_t*w); void read_swf(struct swffile*swf, uchar*data, int length); @@ -195,4 +199,6 @@ char is_sprite_tag (int id); char is_defining_tag (int id); struct swf_tag* duptag(struct swf_tag*tag); +void swf_write_header(struct writer_t*w, struct flash_header*head); + #endif //__flash_h__ diff --git a/src/swfcombine.c b/src/swfcombine.c index 6f082f3..29996f9 100644 --- a/src/swfcombine.c +++ b/src/swfcombine.c @@ -12,10 +12,12 @@ #include #include "../lib/rfxswf.h" #include "../lib/args.h" +#include "../lib/log.h" #include "combine.h" #include "settings.h" #include "types.h" #include "flash.h" +#include "reloc.h" #include "../config.h" char * master_filename = 0; diff --git a/src/swfextract.c b/src/swfextract.c index 87797f4..131a9a0 100644 --- a/src/swfextract.c +++ b/src/swfextract.c @@ -12,6 +12,7 @@ #include #include "../lib/rfxswf.h" #include "../lib/args.h" +#include "../lib/log.h" #include "reloc.h" #ifdef HAVE_ZLIB_H #ifdef HAVE_LIBZ diff --git a/src/swfstrings.c b/src/swfstrings.c index aae32dd..311e354 100644 --- a/src/swfstrings.c +++ b/src/swfstrings.c @@ -27,6 +27,7 @@ int args_callback_option(char*name,char*val) printf("swfstrings - part of %s %s\n", PACKAGE, VERSION); exit(0); } + return 0; } int args_callback_longoption(char*name,char*val) { -- 1.7.10.4