Changeset 5111:090c5c2831a7 in roaraudio


Ignore:
Timestamp:
07/31/11 20:43:58 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed some compiler warnings

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • include/roaraudio/compilerhacks.h

    r5109 r5111  
    5858#endif 
    5959 
     60#ifndef _LIBROAR_IGNORE_RET 
     61#define _LIBROAR_IGNORE_RET(x) ((void)((x)+1)) 
     62#endif 
     63 
    6064#ifndef _LIBROAR_NOATTR_TO_STATIC 
    6165#define _LIBROAR_ATTR_TO_STATIC _LIBROAR_ATTR_DEPRECATED 
  • libroar/buffer.c

    r5013 r5111  
    542542 *copy = NULL; 
    543543 
     544 // TODO:  This function does not handle ring buffers. 
     545 // FIXME: This function does not error out in case of wrong buffer type in buf. 
     546 // TODO:  This function does not handle buffer meta data. 
     547 
    544548 while (cur != NULL) { 
    545549  if ( roar_buffer_new(&new, cur->user_len) == -1 ) { 
     
    553557   *copy = new; 
    554558 
    555   roar_buffer_get_data(cur, &od); 
    556   roar_buffer_get_data(new, &nd); 
     559  _LIBROAR_IGNORE_RET(roar_buffer_get_data(cur, &od)); 
     560  _LIBROAR_IGNORE_RET(roar_buffer_get_data(new, &nd)); 
    557561  memcpy(nd, od, cur->user_len); 
    558562 
    559   roar_buffer_add(*copy, new); 
     563  _LIBROAR_IGNORE_RET(roar_buffer_add(*copy, new)); 
    560564 
    561565  cur = cur->next; 
  • libroar/debug.c

    r5109 r5111  
    135135 
    136136 if ( vio != NULL ) { 
    137   roar_vio_write(vio, buf, ret); 
     137  _LIBROAR_IGNORE_RET(roar_vio_write(vio, buf, ret)); 
    138138  roar_vio_sync(vio); 
    139139 } else { 
     
    207207     return; 
    208208    } 
    209     roar_vio_write(vio, buf, len); 
    210     roar_vio_write(vio, "\n", 1); 
     209    _LIBROAR_IGNORE_RET(roar_vio_write(vio, buf, len)); 
     210    _LIBROAR_IGNORE_RET(roar_vio_write(vio, "\n", 1)); 
    211211    roar_vio_sync(vio); 
    212212   break; 
  • libroar/enumdev.c

    r5109 r5111  
    280280 int is_uniq; 
    281281 
    282  // load config: 
    283  roar_libroar_get_config(); 
    284  
    285282 if ( flags & ROAR_ENUM_FLAG_HARDNONBLOCK ) 
    286283  flags |= ROAR_ENUM_FLAG_NONBLOCK; 
  • libroar/vio_cmd.c

    r4984 r5111  
    522522  self->options -= ROAR_VIO_CMD_OPTS_NONBLOCK; 
    523523 
    524  roar_vio_nonblock(self->next, state); // this should help, but may not nessessery. 
     524 _LIBROAR_IGNORE_RET(roar_vio_nonblock(self->next, state)); // this should help, but may not nessessery. 
    525525 
    526526 return 0; 
  • libroar/vio_rtp.c

    r4991 r5111  
    394394  self->bpf                 = info->channels * info->bits / 8; 
    395395 
    396   roar_vio_ctl(self->vio, cmd, data); 
     396  _LIBROAR_IGNORE_RET(roar_vio_ctl(self->vio, cmd, data)); 
    397397  return 0; 
    398398 } 
  • libroar/vs.c

    r5109 r5111  
    15411541 if ( vss->async.level == ROAR_VS_ASYNCLEVEL_AUTO && !vss->async.lock && 
    15421542      vss->async.read_latency                     && !vss->async.qlen ) { 
    1543   roar_vs_latency2(vss, vss->async.last_backend < 0 ? ROAR_VS_BACKEND_NONE : vss->async.last_backend, ROAR_VS_ASYNC, NULL); 
     1543  _LIBROAR_IGNORE_RET(roar_vs_latency2(vss, 
     1544                                       vss->async.last_backend < 0 ? ROAR_VS_BACKEND_NONE : vss->async.last_backend, 
     1545                                       ROAR_VS_ASYNC, NULL)); 
    15441546 } 
    15451547 
Note: See TracChangeset for help on using the changeset viewer.