From: barbieri Date: Thu, 31 Jan 2008 19:12:45 +0000 (+0000) Subject: Remove ASF compiler warnings. X-Git-Url: https://vcs.maemo.org/git/?p=lms;a=commitdiff_plain;h=819651cddfa388994032231bb3e6684a837d4cfb Remove ASF compiler warnings. --- diff --git a/lightmediascanner/src/plugins/asf/asf.c b/lightmediascanner/src/plugins/asf/asf.c index 091ec89..8199269 100644 --- a/lightmediascanner/src/plugins/asf/asf.c +++ b/lightmediascanner/src/plugins/asf/asf.c @@ -36,6 +36,7 @@ #include #include #include +#include enum StreamTypes { STREAM_TYPE_UNKNOWN = 0, @@ -186,8 +187,6 @@ _parse_content_description(lms_charset_conv_t *cs_conv, int fd, struct asf_info int copyright_length = _read_word(fd); int comment_length = _read_word(fd); int rating_length = _read_word(fd); - int len; - char *copyright, *comment, *rating; _read_string(fd, title_length, &info->title.str, &info->title.len); lms_charset_conv_force(cs_conv, &info->title.str, &info->title.len); @@ -392,7 +391,7 @@ _match(struct plugin *p, const char *path, int len, int base) static int _parse(struct plugin *plugin, struct lms_context *ctxt, const struct lms_file_info *finfo, void *match) { - struct asf_info info = {0}; + struct asf_info info = {{0}, {0}, {0}, {0}, 0}; struct lms_audio_info audio_info = {0}; struct lms_video_info video_info = {0}; int r, fd, num_objects, i;