diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-11-05 21:03:49 +0100 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-11-05 21:03:49 +0100 |
commit | c73999534098d4a660b6b0863eeec565edea22f8 (patch) | |
tree | 31ed75f227d588c81d56f6f975bfa92b8ae82638 | |
parent | a98476f7163c1f6e0aea295a2c2c5374d4b18908 (diff) |
gcc warning fixes
-rw-r--r-- | plugins/ao/plugin.c | 6 | ||||
-rw-r--r-- | plugins/converter/converter.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/ao/plugin.c b/plugins/ao/plugin.c index 46faec6b..d997c759 100644 --- a/plugins/ao/plugin.c +++ b/plugins/ao/plugin.c @@ -186,21 +186,21 @@ aoplug_seek (DB_fileinfo_t *_info, float time) { static void aoplug_add_meta (DB_playItem_t *it, const char *key, const char *value, const char *comment_title) { - const char *res = NULL; +// const char *res = NULL; char tmp[200]; // check utf8 if (deadbeef->junk_recode (value, strlen (value), tmp, sizeof (tmp), "utf-8") >= 0) { if (key) { deadbeef->pl_add_meta (it, key, value); } - res = value; +// res = value; } // check shift-jis if (deadbeef->junk_recode (value, strlen (value), tmp, sizeof (tmp), "SHIFT-JIS") >= 0) { if (key) { deadbeef->pl_add_meta (it, key, tmp); } - res = tmp; +// res = tmp; } // if (res) { diff --git a/plugins/converter/converter.c b/plugins/converter/converter.c index 5a7b2e6f..17be3036 100644 --- a/plugins/converter/converter.c +++ b/plugins/converter/converter.c @@ -849,7 +849,7 @@ convert (DB_playItem_t *it, const char *out, int output_bps, int output_is_float tmp = "/tmp"; } snprintf (input_file_name, sizeof (input_file_name), "%s/ddbconvXXXXXX", tmp); - mktemp (input_file_name); + char *res = mktemp (input_file_name); strcat (input_file_name, ".wav"); } else { |