Changeset 3634:4302b0003d93 in roaraudio for libroardsp


Ignore:
Timestamp:
03/11/10 23:30:09 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

bit more in direction of -Wextra

Location:
libroardsp
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • libroardsp/Makefile

    r3629 r3634  
    1616#DEFINES        = -DDEBUG 
    1717INCLUDE = -I../include -I../include/libroardsp 
    18 CFLAGS += -g -Wall -O2 $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC) 
     18CFLAGS += -g -Wall -Wextra -O2 $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC) 
    1919LDFLAGS = -g $(SHARED) -L../lib/ $(LDPATH) 
    2020 
  • libroardsp/alaw.c

    r3517 r3634  
    808808int roardsp_conv_pcm162alaw (char * out, int16_t * in, size_t len) { 
    809809#ifdef ROAR_SUPPORT_ALAW_RW 
    810  int i; 
     810 unsigned int i; 
    811811 
    812812 for (i = 0; i < len; i++) { 
  • libroardsp/mulaw.c

    r3517 r3634  
    14911491int roardsp_conv_pcm162mulaw (char * out, int16_t * in, size_t len) { 
    14921492#ifdef ROAR_SUPPORT_MULAW_RW 
    1493  int i; 
     1493 unsigned int i; 
    14941494 
    14951495 for (i = 0; i < len; i++) { 
  • libroardsp/transcode.c

    r3517 r3634  
    5757 
    5858 for (i = 0; g_xcoders[i].codec != -1; i++) { 
    59   if ( g_xcoders[i].codec == info->codec ) { 
     59  if ( g_xcoders[i].codec == (int)info->codec ) { 
    6060   state->entry = &(g_xcoders[i]); 
    6161   break; 
     
    141141  return -1; 
    142142 
    143  if ( state->packet_len > 0 && state->packet_len != len ) 
     143 if ( state->packet_len > 0 && state->packet_len != (ssize_t)len ) 
    144144  return -1; 
    145145 
     
    183183 
    184184 if ( state->iobuffer == NULL ) { 
    185   while ( len >= state->packet_len ) { 
     185  while ( (ssize_t)len >= state->packet_len ) { 
    186186   if ( roar_xcoder_proc_packet(state, buf, state->packet_len) == -1 ) { 
    187187    ROAR_DBG("roar_xcoder_proc(state=%p, buf=%p, len=%lu) = -1 // roar_xcoder_proc_packet() error", state, buf, (unsigned long)len); 
     
    271271    } 
    272272 
    273     if ( curlen < state->packet_len ) { // this should not happen... 
     273    if ( (ssize_t)curlen < state->packet_len ) { // this should not happen... 
    274274     roar_buffer_free(bufbuf); 
    275275     return -1; 
Note: See TracChangeset for help on using the changeset viewer.