Changeset 5270:e25346c13638 in roaraudio for roard


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

fixed some gcc -Wextra warnings

Location:
roard
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • roard/Makefile

    r5242 r5270  
    1919INCLUDE   = -I../include -I./include 
    2020CFLAGS   += -g -Wall $(OPTI_O) $(DEFINES) $(PKGDEFINES) $(INCLUDE) $(INCPATH) 
    21 LDFLAGS  += -g -rdynamic -L../lib/ $(LDPATH) 
     21LDFLAGS  += -g -Wall -rdynamic -L../lib/ $(LDPATH) 
    2222DRVLIBS   = $(lib_esd) $(lib_ossaudio) $(lib_ao) $(lib_shout) $(lib_sndio) $(lib_rsound) $(lib_portaudio) $(lib_pablio) $(lib_asound) $(lib_winmm) $(lib_pulse_simple) $(lib_pulse) $(lib_jack) $(lib_artsc) 
    2323CODEC_CELT= $(lib_celt) $(lib_celt0) 
  • roard/codecfilter_alaw.c

    r4957 r5270  
    3838 struct roar_stream * s = ROAR_STREAM(info); 
    3939 
     40 (void)codec, (void)filter; 
    4041 
    4142 *inst = (CODECFILTER_USERDATA_T) info; 
     
    4849 
    4950int cf_alaw_close(CODECFILTER_USERDATA_T   inst) { 
     51 (void)inst; 
    5052 return 0; 
    5153} 
  • roard/codecfilter_au.c

    r5210 r5270  
    3434 struct roar_stream * s = ROAR_STREAM(info); 
    3535 
    36  if ( !self ) 
     36 (void)codec, (void)filter; 
     37 
     38 if ( self == NULL ) 
    3739  return -1; 
    3840 
     
    99101    return -1; 
    100102 
    101    if ( stream_vio_s_read(self->stream, extra_header, header[1]) != header[1] ) { 
     103   if ( stream_vio_s_read(self->stream, extra_header, header[1]) != (ssize_t)header[1] ) { 
    102104    roar_mm_free(extra_header); 
    103105    return -1; 
     
    275277 int_least32_t type = cmd & ROAR_STREAM_CTL_TYPEMASK; 
    276278 
     279 (void)data; 
     280 
    277281 cmd -= type; 
    278282 
  • roard/codecfilter_celt.c

    r4957 r5270  
    3737 struct roar_stream * s = ROAR_STREAM(info); 
    3838 
    39  if ( !self ) 
     39 (void)codec, (void)filter; 
     40 
     41 if ( self == NULL ) 
    4042  return -1; 
    4143 
  • roard/codecfilter_mulaw.c

    r4957 r5270  
    3838 struct roar_stream * s = ROAR_STREAM(info); 
    3939 
     40 (void)codec, (void)filter; 
    4041 
    4142 *inst = (CODECFILTER_USERDATA_T) info; 
     
    4849 
    4950int cf_mulaw_close(CODECFILTER_USERDATA_T   inst) { 
     51 (void)inst; 
    5052 return 0; 
    5153} 
  • roard/codecfilter_sndfile.c

    r4957 r5270  
    3232                                            struct roar_codecfilter   * filter) { 
    3333 struct codecfilter_sndfile_inst * obj; 
     34 
     35 (void)codec, (void)filter; 
    3436 
    3537 if ( (obj = (struct codecfilter_sndfile_inst *) roar_mm_malloc(sizeof(struct codecfilter_sndfile_inst))) == NULL ) 
  • roard/codecfilter_vorbis.c

    r5218 r5270  
    7171 struct roar_stream * s = ROAR_STREAM(info); 
    7272 
    73  if ( !self ) 
     73 (void)codec, (void)filter; 
     74 
     75 if ( self == NULL ) 
    7476  return -1; 
    7577 
  • roard/emul_rsound.c

    r4739 r5270  
    3939  char c[16]; 
    4040 } buf; 
     41 
     42 (void)lsock; 
    4143 
    4244 // TODO: add error handling 
  • roard/signals.c

    r4708 r5270  
    3838 
    3939void on_sig_term (int signum) { 
     40 (void)signum; 
     41 
    4042 ROAR_INFO("got SIGTERM (or called by SIGINT handler)", ROAR_DBG_INFO_NOTICE); 
    4143 
     
    4547 
    4648void on_sig_chld (int signum) { 
     49 (void)signum; 
     50 
    4751 ROAR_INFO("got SIGCHLD", ROAR_DBG_INFO_NOTICE); 
    4852 
     
    5357 
    5458void on_sig_usr1 (int signum) { 
     59 (void)signum; 
     60 
    5561 ROAR_INFO("got SIGUSR1", ROAR_DBG_INFO_NOTICE); 
    5662 
Note: See TracChangeset for help on using the changeset viewer.