Changeset 5270:e25346c13638 in roaraudio for libroarpulse


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

fixed some gcc -Wextra warnings

Location:
libroarpulse
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • libroarpulse/Makefile

    r4748 r5270  
    1414#DEFINES        = -DDEBUG 
    1515INCLUDE = -I../include -I../include/libroarpulse 
    16 CFLAGS += -g -Wall $(OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC) 
    17 LDFLAGS+= -g $(LDPATH) -L../lib/ -L. 
     16CFLAGS += -g -Wall $(Wextra) $(OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC) 
     17LDFLAGS+= -g -Wall $(Wextra) $(LDPATH) -L../lib/ -L. 
    1818LIBS    = $(LIBROAR) 
    1919 
  • libroarpulse/context.c

    r4708 r5270  
    221221/** Return non-zero if some data is pending to be written to the connection */ 
    222222int pa_context_is_pending(pa_context *c) { 
     223 (void)c; 
    223224 return 0; 
    224225} 
     
    334335/** Return the protocol version of the library. \since 0.8 */ 
    335336uint32_t pa_context_get_protocol_version(pa_context *c) { 
     337 (void)c; 
    336338 return 0; 
    337339} 
     
    339341/** Return the protocol version of the connected server. \since 0.8 */ 
    340342uint32_t pa_context_get_server_protocol_version(pa_context *c) { 
     343 (void)c; 
    341344 return 0; 
    342345} 
  • libroarpulse/mainloop-signal.c

    r4708 r5270  
    7777 int sig; 
    7878 size_t ret; 
     79#endif 
    7980 
     81 (void)a, (void)e, (void)f, (void)userdata; 
     82 
     83#ifdef ROAR_HAVE_PIPE 
    8084 ret = read(fd, &sig, sizeof(sig)); 
    8185 
  • libroarpulse/mainloop.c

    r4708 r5270  
    273273 pa_io_event_flags_t events; 
    274274 int count = 0; 
    275  int i, h; 
     275 int h; 
     276 nfds_t i; 
    276277 
    277278 ROAR_DBG("pa_mainloop_dispatch(m=%p) = ?", m); 
  • libroarpulse/operation.c

    r4708 r5270  
    8989void pa_operation_cancel(pa_operation *o) { 
    9090 // we ignore this 
     91 (void)o; 
    9192} 
    9293 
  • libroarpulse/simple.c

    r5239 r5270  
    5959 int roar_dir; 
    6060 int err = ROAR_ERROR_NONE; 
     61 
     62 if ( dev != NULL || map != NULL || attr != NULL ) 
     63  return NULL; 
    6164 
    6265 if ( dir == PA_STREAM_PLAYBACK ) { 
  • libroarpulse/stream.c

    r5243 r5270  
    177177/** Return the device (sink input or source output) index this stream is connected to */ 
    178178uint32_t pa_stream_get_index(pa_stream *s) { 
     179 (void)s; 
    179180 return 0; 
    180181} 
     
    189190 void * data; 
    190191 size_t len; 
    191  size_t ret; 
     192 ssize_t ret; 
    192193 int bufret; 
     194 
     195 (void)fd, (void)events; 
    193196 
    194197 ROAR_DBG("_roar_pa_stream_ioecb(*) = ?"); 
     
    209212 
    210213     // TODO: handle errors 
    211      if ( ret == len ) { 
     214     if ( ret == (ssize_t)len ) { 
    212215      bufret = roar_buffer_next(&(s->iobuffer)); 
    213216     } else { 
     
    289292 volume = NULL; 
    290293 
    291  if ( attr != NULL || flags != 0 || volume != NULL || sync_stream != NULL ) { 
     294 if ( dev != NULL || attr != NULL || flags != 0 || volume != NULL || sync_stream != NULL ) { 
    292295  pa_stream_set_state(s, PA_STREAM_FAILED); 
    293296  return -1; 
  • libroarpulse/timeval.c

    r4708 r5270  
    6969 tv->tv_usec += v; 
    7070 
    71  while ( tv->tv_usec > 1000000LLU ) { 
    72   tv->tv_usec -= 1000000LLU; 
     71 while ( tv->tv_usec > 1000000LL ) { 
     72  tv->tv_usec -= 1000000LL; 
    7373  tv->tv_sec  += 1; 
    7474 } 
  • libroarpulse/volume.c

    r4708 r5270  
    6262/** Set the volume of all channels to the specified parameter */ 
    6363pa_cvolume* pa_cvolume_set(pa_cvolume *a, unsigned channels, pa_volume_t v) { 
    64  int i; 
     64 unsigned int i; 
    6565 
    6666 if ( a == NULL ) 
Note: See TracChangeset for help on using the changeset viewer.