Changeset 5270:e25346c13638 in roaraudio for libroaryiff


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

fixed some gcc -Wextra warnings

Location:
libroaryiff
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • libroaryiff/Makefile

    r4748 r5270  
    77#DEFINES        = -DDEBUG 
    88INCLUDE = -I../include -I../include/libroaryiff 
    9 CFLAGS += -g -Wall $(OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC) 
    10 LDFLAGS+= -g $(SHARED) $(LDPATH) -L../lib/ 
     9CFLAGS += -g -Wall $(Wextra) $(OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH) $(SHARED_CF) $(fPIC) 
     10LDFLAGS+= -g -Wall $(Wextra) $(SHARED) $(LDPATH) -L../lib/ 
    1111LIBS    = $(LIBROAR) 
    1212 
  • libroaryiff/connection.c

    r5247 r5270  
    3939 YConnection * ycon = roar_mm_malloc(sizeof(YConnection)); 
    4040 struct roar_connection con; 
    41  char * server = (char *)con_arg; 
    42  char * name   = "libroaryiff client"; 
     41 const char * server = (char *)con_arg; 
     42 const char * name   = "libroaryiff client"; 
    4343 
    4444 memset(ycon, 0, sizeof(YConnection)); 
     
    7575 struct roar_vio_calls vio; 
    7676 
     77 // in case we started the server by using +fork we can not keep it running 
     78 // as it will terminate anyway. If there are any other clients (I guess 
     79 // this is what this option is about) it will keep running. 
     80 (void)no_shutdown; 
     81 
    7782 if ( connection == NULL ) 
    7883  return; 
  • libroaryiff/events.c

    r5035 r5270  
    3737 
    3838// RoarAudio isn't event based, so we need to trick a lot here 
     39// Maybe this can be overcome with the notify API 
    3940 
    4041int YGetNextEvent (YConnection *con, YEvent *event, Boolean block) { 
    4142 struct roar_connection rcon; 
    4243 struct roar_stream s; 
     44 
     45 (void)block; 
    4346 
    4447 if ( con == NULL || event == NULL ) 
  • libroaryiff/file.c

    r4708 r5270  
    3737 
    3838int YGetSoundObjectAttributes (YConnection *con, const char *path, YEventSoundObjectAttributes *buf) { 
     39 (void)con; 
     40 
    3941 if ( buf == NULL ) 
    4042  return -1; 
  • libroaryiff/stub.c

    r4708 r5270  
    3838// in here only some stub functions are delcared 
    3939 
    40 extern void YSyncAll(YConnection *con, Boolean block) { 
     40void YSyncAll(YConnection *con, Boolean block) { 
     41 (void)con, (void)block; 
    4142} 
    4243 
Note: See TracChangeset for help on using the changeset viewer.