Changeset 4741bb2c566864b5d85b3216cded4131a1b69a57

Show
Ignore:
Timestamp:
11/30/11 17:49:32 (3 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1322675372 -0500
git-parent:

[7b28cc85a1bc31833aad9c9189e7f8400a6bf16d]

git-author:
Igor Galić <i.galic@brainsware.org> 1322675303 -0500
Message:

compile with GCC 4.6.1

Some of the things you'll see here are ugly. Others I'm really not
proud of. There's really only a handful that are a catch by this
compiler and make actual sense..

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/eventer/eventer_epoll_impl.c

    rf870be0 r4741bb2  
    185185static void eventer_epoll_impl_trigger(eventer_t e, int mask) { 
    186186  struct timeval __now; 
    187   int fd, oldmask, newmask; 
     187  int fd, newmask; 
    188188  const char *cbname; 
    189189  ev_lock_state_t lockstate; 
     
    196196 
    197197  gettimeofday(&__now, NULL); 
    198   oldmask = e->mask; 
    199198  cbname = eventer_name_for_callback(e->callback); 
    200199  noitLT(eventer_deb, &__now, "epoll: fire on %d/%x to %s(%p)\n", 
  • src/modules/collectd.c

    rdfec968 r4741bb2  
    14181418  char ip_p[INET6_ADDRSTRLEN]; 
    14191419  noit_module_t *self = (noit_module_t *)closure; 
    1420   collectd_mod_config_t *conf; 
    1421   conf = noit_module_get_userdata(self); 
    1422  
    14231420 
    14241421  // Get the username and password of the string 
  • src/noit_check_rest.c

    r6033f87 r4741bb2  
    488488 cleanup: 
    489489  if(pobj) xmlXPathFreeObject(pobj); 
     490  (void)error; 
    490491  return 0; 
    491492} 
  • src/noit_console_state.c

    r410716d r4741bb2  
    522522    noit_console_state_add_cmd(_top_level_state, &console_command_restart); 
    523523    noit_console_state_add_cmd(show_state, &console_command_version); 
     524    (void)no_state; 
    524525 
    525526    evdeb = noit_console_mksubdelegate( 
  • src/utils/noit_log.c

    rcd621c2 r4741bb2  
    220220  rv = rename(ls->path, name); 
    221221  if(lock) pthread_rwlock_unlock(lock); 
    222   return -1
     222  return rv
    223223} 
    224224static logops_t posix_logio_ops = { 
     
    441441static void 
    442442noit_log_jlog_err(void *ctx, const char *format, ...) { 
    443   int rv; 
    444443  struct timeval now; 
    445444  va_list arg; 
    446445  va_start(arg, format); 
    447446  gettimeofday(&now, NULL); 
    448   rv = noit_vlog(noit_error, &now, "jlog.c", 0, format, arg); 
     447  (void)noit_vlog(noit_error, &now, "jlog.c", 0, format, arg); 
    449448  va_end(arg); 
    450449} 
  • src/utils/noit_watchdog.c

    r23fef54 r4741bb2  
    110110    unused = system(cmd); 
    111111  } 
     112  (void)unused; 
    112113} 
    113114