plugins: Turn on warnings
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 7 Aug 2013 15:57:20 +0000 (12:57 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 7 Aug 2013 21:49:38 +0000 (18:49 -0300)
commita284f11b8a4157401f68b6f6a04fdb1607bac51f
tree097a7c2af634f35bc54f1770c323b081f67a5d96
parent881a964b266d4fbb62cc27579447a787a1f97baa
plugins: Turn on warnings

Turn on the same compiler warnings that were on for the library and fix
the issues.

  * signed/unsigned comparison
  * Missing function prototype
  * constify lms_plugin_info
  * Missing struct initializers (actually remove all of them)
  * Fix LMS_STATIC_STRING_SIZE to cast to char* since lms_string_size is
    declared with 'char *str' and we can't really change it (otherwise
    in other places it would not be able to change the
    string in place

Warnings like this in mp4 plugin is not fixed:
mp4/mp4.c:120:5: warning: implicit declaration of function
'MP4GetMetadataName' [-Wimplicit-function-declaration]
     MP4GetMetadataName(mp4_fh, &info.title.str);

This happens because MP4v2 lib deprecated the use of these functions in
favor to another MP4Tags*() API. Let this warning as is so we remember
to change this code.
16 files changed:
src/lib/lightmediascanner_plugin.h
src/lib/lightmediascanner_utils.h
src/plugins/Makefile.am
src/plugins/asf/asf.c
src/plugins/audio-dummy/audio-dummy.c
src/plugins/dummy/dummy.c
src/plugins/flac/flac.c
src/plugins/id3/id3.c
src/plugins/jpeg/jpeg.c
src/plugins/m3u/m3u.c
src/plugins/mp4/mp4.c
src/plugins/ogg/ogg.c
src/plugins/pls/pls.c
src/plugins/png/png.c
src/plugins/rm/rm.c
src/plugins/video-dummy/video-dummy.c