Changeset 5270:e25346c13638 in roaraudio for roarfish


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

fixed some gcc -Wextra warnings

Location:
roarfish
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • roarfish/Makefile

    r4804 r5270  
    88#DEFINES        = -DDEBUG 
    99INCLUDE = -I../include -I./include 
    10 CFLAGS += -g -Wall $(OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH) 
    11 LDFLAGS+= -g -L../lib/ $(LDPATH) 
     10CFLAGS += -g -Wall $(Wextra) $(OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH) 
     11LDFLAGS+= -g -Wall $(Wextra) -L../lib/ $(LDPATH) 
    1212LIBS    = $(LIBROAR) $(lib_fishsound) $(lib_oggz) 
    1313 
  • roarfish/include/roarfish.h

    r4708 r5270  
    4242#include <sndfile.h> 
    4343 
    44 int play (char * file, char ** opts); 
     44int play (const char * file, char ** opts); 
    4545 
    4646#ifdef __USE_SVID 
  • 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.