Changeset 5270:e25346c13638 in roaraudio for roarfish/play.c


Ignore:
Timestamp:
11/17/11 18:20:12 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed some gcc -Wextra warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarfish/play.c

    r4908 r5270  
    6363 
    6464 
    65  roar_vs_write(inst->vss, (char*)data, frames * 2, NULL); 
     65 if ( roar_vs_write(inst->vss, (char*)data, frames * 2, NULL) != (ssize_t)(frames * 2) ) { 
     66  return -1; 
     67 } 
    6668 
    6769 
     
    7476 FishSound * fsound = (FishSound *)user_data; 
    7577 
    76  fish_sound_prepare_truncation (fsound, op->granulepos, op->e_o_s); 
    77  fish_sound_decode (fsound, op->packet, op->bytes); 
     78 (void)oggz, (void)serialno; 
     79 
     80 fish_sound_prepare_truncation(fsound, op->granulepos, op->e_o_s); 
     81 fish_sound_decode(fsound, op->packet, op->bytes); 
    7882 
    7983 return 0; 
    8084} 
    8185 
    82 int play (char * file, char ** opts) { 
     86int play (const char * file, char ** opts) { 
    8387 OGGZ * oggz; 
    8488 struct roarfish_play_inst inst; 
     89 
     90 (void)opts; 
    8591 
    8692 inst.vss    = NULL; 
Note: See TracChangeset for help on using the changeset viewer.