diff options
author | Petri Hintukainen <phintuka@users.sourceforge.net> | 2012-04-11 13:52:04 +0300 |
---|---|---|
committer | Petri Hintukainen <phintuka@users.sourceforge.net> | 2012-04-11 13:52:04 +0300 |
commit | 063ea19dbf5e49f6be76b656994fc7ded51b8ae9 (patch) | |
tree | 2991ec233ef2127fe59d3d36d0387a786e8e50de | |
parent | 02313d506f360392a6e221a31a267f0aa79c0dfb (diff) | |
download | xine-lib-063ea19dbf5e49f6be76b656994fc7ded51b8ae9.tar.gz xine-lib-063ea19dbf5e49f6be76b656994fc7ded51b8ae9.tar.bz2 |
Fixed warnings
-rw-r--r-- | src/input/input_cdda.c | 4 | ||||
-rw-r--r-- | src/input/input_dvd.c | 8 | ||||
-rw-r--r-- | src/input/input_stdin_fifo.c | 5 |
3 files changed, 7 insertions, 10 deletions
diff --git a/src/input/input_cdda.c b/src/input/input_cdda.c index 6f6f23ef2..5cbcc2cb0 100644 --- a/src/input/input_cdda.c +++ b/src/input/input_cdda.c @@ -1357,7 +1357,7 @@ static int _cdda_cddb_send_command(cdda_input_plugin_t *this, char *cmd) { * Handle return code od a command result. */ static int _cdda_cddb_handle_code(char *buf) { - int rcode, fdig, sdig, tdig, err; + int rcode, fdig, sdig, /*tdig,*/ err; err = -999; @@ -1365,7 +1365,7 @@ static int _cdda_cddb_handle_code(char *buf) { fdig = rcode / 100; sdig = (rcode - (fdig * 100)) / 10; - tdig = (rcode - (fdig * 100) - (sdig * 10)); + /*tdig = (rcode - (fdig * 100) - (sdig * 10));*/ /* printf(" %d--\n", fdig); diff --git a/src/input/input_dvd.c b/src/input/input_dvd.c index 8bf8ab580..ca6f9bf25 100644 --- a/src/input/input_dvd.c +++ b/src/input/input_dvd.c @@ -871,13 +871,13 @@ static off_t dvd_plugin_get_current_pos (input_plugin_t *this_gen){ dvd_input_plugin_t *this = (dvd_input_plugin_t*)this_gen; uint32_t pos=0; uint32_t length=1; - dvdnav_status_t result; + /*dvdnav_status_t result;*/ trace_print("Called\n"); if(!this || !this->dvdnav) { return 0; } - result = dvdnav_get_position(this->dvdnav, &pos, &length); + /*result =*/ dvdnav_get_position(this->dvdnav, &pos, &length); return (off_t)pos * (off_t)DVD_BLOCK_SIZE; } @@ -912,14 +912,14 @@ static off_t dvd_plugin_get_length (input_plugin_t *this_gen) { dvd_input_plugin_t *this = (dvd_input_plugin_t*)this_gen; uint32_t pos=0; uint32_t length=1; - dvdnav_status_t result; + /*dvdnav_status_t result;*/ trace_print("Called\n"); if(!this || !this->dvdnav) { return 0; } - result = dvdnav_get_position(this->dvdnav, &pos, &length); + /*result =*/ dvdnav_get_position(this->dvdnav, &pos, &length); return (off_t)length * (off_t)DVD_BLOCK_SIZE; } diff --git a/src/input/input_stdin_fifo.c b/src/input/input_stdin_fifo.c index e0aecdc39..4abb31ef4 100644 --- a/src/input/input_stdin_fifo.c +++ b/src/input/input_stdin_fifo.c @@ -304,12 +304,9 @@ static input_plugin_t *stdin_class_get_instance (input_class_t *class_gen, fh = STDIN_FILENO; } else if (!strncasecmp (mrl, "fifo:/", 6)) { - char *filename; - - filename = (char *) &mrl[5]; fh = -1; - lprintf("filename '%s'\n", filename); + lprintf("filename '%s'\n", mrl + 5); } else { free (mrl); |