diff options
author | Costa Tsaousis <costa@tsaousis.gr> | 2018-10-26 20:34:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-26 20:34:48 +0300 |
commit | bcdfedbe8215fdf461b61900eba2a9de4be6c0b8 (patch) | |
tree | c3597819ec055cb64bc752fe2c81fe1c485305f0 /libnetdata | |
parent | c6cce6bd2accec27a61243e1ffa38826ac2a4892 (diff) |
fixed rpm build; (#4503)
Diffstat (limited to 'libnetdata')
-rw-r--r-- | libnetdata/locks/locks.c | 11 | ||||
-rw-r--r-- | libnetdata/procfile/procfile.c | 1 | ||||
-rw-r--r-- | libnetdata/socket/socket.c | 4 |
3 files changed, 16 insertions, 0 deletions
diff --git a/libnetdata/locks/locks.c b/libnetdata/locks/locks.c index 4e44b9d450..91e2269025 100644 --- a/libnetdata/locks/locks.c +++ b/libnetdata/locks/locks.c @@ -84,6 +84,7 @@ int __netdata_mutex_unlock(netdata_mutex_t *mutex) { int netdata_mutex_init_debug( const char *file, const char *function, const unsigned long line, netdata_mutex_t *mutex) { usec_t start = 0; + (void)start; if(unlikely(debug_flags & D_LOCKS)) { start = now_boottime_usec(); @@ -99,6 +100,7 @@ int netdata_mutex_init_debug( const char *file, const char *function, const unsi int netdata_mutex_lock_debug( const char *file, const char *function, const unsigned long line, netdata_mutex_t *mutex) { usec_t start = 0; + (void)start; if(unlikely(debug_flags & D_LOCKS)) { start = now_boottime_usec(); @@ -114,6 +116,7 @@ int netdata_mutex_lock_debug( const char *file, const char *function, const unsi int netdata_mutex_trylock_debug( const char *file, const char *function, const unsigned long line, netdata_mutex_t *mutex) { usec_t start = 0; + (void)start; if(unlikely(debug_flags & D_LOCKS)) { start = now_boottime_usec(); @@ -129,6 +132,7 @@ int netdata_mutex_trylock_debug( const char *file, const char *function, const u int netdata_mutex_unlock_debug( const char *file, const char *function, const unsigned long line, netdata_mutex_t *mutex) { usec_t start = 0; + (void)start; if(unlikely(debug_flags & D_LOCKS)) { start = now_boottime_usec(); @@ -217,6 +221,7 @@ int __netdata_rwlock_trywrlock(netdata_rwlock_t *rwlock) { int netdata_rwlock_destroy_debug( const char *file, const char *function, const unsigned long line, netdata_rwlock_t *rwlock) { usec_t start = 0; + (void)start; if(unlikely(debug_flags & D_LOCKS)) { start = now_boottime_usec(); @@ -232,6 +237,7 @@ int netdata_rwlock_destroy_debug( const char *file, const char *function, const int netdata_rwlock_init_debug( const char *file, const char *function, const unsigned long line, netdata_rwlock_t *rwlock) { usec_t start = 0; + (void)start; if(unlikely(debug_flags & D_LOCKS)) { start = now_boottime_usec(); @@ -247,6 +253,7 @@ int netdata_rwlock_init_debug( const char *file, const char *function, const uns int netdata_rwlock_rdlock_debug( const char *file, const char *function, const unsigned long line, netdata_rwlock_t *rwlock) { usec_t start = 0; + (void)start; if(unlikely(debug_flags & D_LOCKS)) { start = now_boottime_usec(); @@ -262,6 +269,7 @@ int netdata_rwlock_rdlock_debug( const char *file, const char *function, const u int netdata_rwlock_wrlock_debug( const char *file, const char *function, const unsigned long line, netdata_rwlock_t *rwlock) { usec_t start = 0; + (void)start; if(unlikely(debug_flags & D_LOCKS)) { start = now_boottime_usec(); @@ -277,6 +285,7 @@ int netdata_rwlock_wrlock_debug( const char *file, const char *function, const u int netdata_rwlock_unlock_debug( const char *file, const char *function, const unsigned long line, netdata_rwlock_t *rwlock) { usec_t start = 0; + (void)start; if(unlikely(debug_flags & D_LOCKS)) { start = now_boottime_usec(); @@ -292,6 +301,7 @@ int netdata_rwlock_unlock_debug( const char *file, const char *function, const u int netdata_rwlock_tryrdlock_debug( const char *file, const char *function, const unsigned long line, netdata_rwlock_t *rwlock) { usec_t start = 0; + (void)start; if(unlikely(debug_flags & D_LOCKS)) { start = now_boottime_usec(); @@ -307,6 +317,7 @@ int netdata_rwlock_tryrdlock_debug( const char *file, const char *function, cons int netdata_rwlock_trywrlock_debug( const char *file, const char *function, const unsigned long line, netdata_rwlock_t *rwlock) { usec_t start = 0; + (void)start; if(unlikely(debug_flags & D_LOCKS)) { start = now_boottime_usec(); diff --git a/libnetdata/procfile/procfile.c b/libnetdata/procfile/procfile.c index addf271580..4a812baab4 100644 --- a/libnetdata/procfile/procfile.c +++ b/libnetdata/procfile/procfile.c @@ -454,6 +454,7 @@ procfile *procfile_reopen(procfile *ff, const char *filename, const char *separa void procfile_print(procfile *ff) { size_t lines = procfile_lines(ff), l; char *s; + (void)s; debug(D_PROCFILE, "File '%s' with %zu lines and %zu words", procfile_filename(ff), ff->lines->len, ff->words->len); diff --git a/libnetdata/socket/socket.c b/libnetdata/socket/socket.c index 94a39ebca1..025bdca0da 100644 --- a/libnetdata/socket/socket.c +++ b/libnetdata/socket/socket.c @@ -602,6 +602,8 @@ static inline int connect_to_this_ip46(int protocol, int socktype, const char *h case PF_INET6: { struct sockaddr_in6 *pSadrIn6 = (struct sockaddr_in6 *) ai->ai_addr; + (void)pSadrIn6; + debug(D_CONNECT_TO,"ai_addr = sin6_family: %d (AF_INET = %d, AF_INET6 = %d), sin6_addr: '%s', sin6_port: '%s', sin6_flowinfo: %u, sin6_scope_id: %u", pSadrIn6->sin6_family, AF_INET, @@ -1431,6 +1433,8 @@ void poll_events(LISTEN_SOCKETS *sockets usec_t timer_usec = timer_milliseconds * USEC_PER_MS; usec_t now_usec = 0, next_timer_usec = 0, last_timer_usec = 0; + (void)last_timer_usec; + if(unlikely(timer_usec)) { now_usec = now_boottime_usec(); next_timer_usec = now_usec - (now_usec % timer_usec) + timer_usec; |