# HG changeset patch # User diego # Date 1189689390 0 # Node ID 0c4f1a88eaae8e4fdd2ee010241f730de086392b # Parent 6af1c486d844ccf7a07affdf610a21b219a9d56d warning fixes: input.c: In function 'mp_input_set_section': input.c:1640: warning: suggest parentheses around assignment used as truth value input.c:1643: warning: suggest parentheses around assignment used as truth value mga_common.c: In function 'mga_init': mga_common.c:394: warning: suggest parentheses around assignment used as truth value playtreeparser.c: In function 'parse_smil': playtreeparser.c:523: warning: suggest parentheses around assignment used as truth value libmpdemux/demux_ts.c: In function 'ts_parse': libmpdemux/demux_ts.c:2795: warning: suggest parentheses around assignment used as truth value libmpdemux/demux_ts.c: In function 'demux_open_ts': libmpdemux/demux_ts.c:591: warning: 'frame_length' may be used uninitialized in this function diff -r 6af1c486d844 -r 0c4f1a88eaae input/input.c --- a/input/input.c Thu Sep 13 11:23:32 2007 +0000 +++ b/input/input.c Thu Sep 13 13:16:30 2007 +0000 @@ -1637,10 +1637,10 @@ cmd_binds_default=NULL; if(section) free(section); if(name) section=strdup(name); else section=strdup("default"); - if(bind_section=mp_input_get_bind_section(section)) + if((bind_section=mp_input_get_bind_section(section))) cmd_binds=bind_section->cmd_binds; if(strcmp(section,"default")==0) return; - if(bind_section=mp_input_get_bind_section(NULL)) + if((bind_section=mp_input_get_bind_section(NULL))) cmd_binds_default=bind_section->cmd_binds; } diff -r 6af1c486d844 -r 0c4f1a88eaae libmpdemux/demux_ts.c --- a/libmpdemux/demux_ts.c Thu Sep 13 11:23:32 2007 +0000 +++ b/libmpdemux/demux_ts.c Thu Sep 13 13:16:30 2007 +0000 @@ -2792,7 +2792,7 @@ if(dvdsub_lang) { - if(lang = pid_lang_from_pmt(priv, pid)) + if ((lang = pid_lang_from_pmt(priv, pid))) asgn = (strncmp(lang, dvdsub_lang, 3) == 0); } else //no language specified with -slang diff -r 6af1c486d844 -r 0c4f1a88eaae libvo/mga_common.c --- a/libvo/mga_common.c Thu Sep 13 11:23:32 2007 +0000 +++ b/libvo/mga_common.c Thu Sep 13 13:16:30 2007 +0000 @@ -391,7 +391,7 @@ { // try whether we have a G550 int ret; - if(ret = ioctl(f,MGA_VID_CONFIG,&mga_vid_config)) + if ((ret = ioctl(f,MGA_VID_CONFIG,&mga_vid_config))) { if(mga_vid_config.card_type != MGA_G550) { diff -r 6af1c486d844 -r 0c4f1a88eaae playtreeparser.c --- a/playtreeparser.c Thu Sep 13 11:23:32 2007 +0000 +++ b/playtreeparser.c Thu Sep 13 13:16:30 2007 +0000 @@ -520,7 +520,7 @@ pos = line; while (pos) { if (!entrymode) { // all entries filled so far - while (pos=strchr(pos, '<')) { + while ((pos=strchr(pos, '<'))) { if (strncasecmp(pos,"