Skip to content

Commit

Permalink
fixed warnings about unused static variables from newer compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Yurchenko committed Apr 18, 2017
1 parent 48ed7a3 commit f390f23
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/glb_cnf.c
Expand Up @@ -18,7 +18,9 @@ glb_cnf_t* glb_cnf = NULL;
#include <string.h>

static const long long default_check_interval = 1000000000; // 1 sec
#ifdef GLBD
static const char default_fifo_name[] = "/tmp/glbd.fifo";
#endif /* GLBD */

glb_cnf_t*
glb_cnf_init ()
Expand Down
2 changes: 1 addition & 1 deletion src/glb_env.c
Expand Up @@ -24,7 +24,7 @@ static const char env_policy[] = "GLB_POLICY";
static const char env_ctrl[] = "GLB_CONTROL"; // address to accept control
// connections
static const char env_targets[] = "GLB_TARGETS"; // balancing targets
static const char env_interval[]= "GLB_INTERVAL";// health check interval
//static const char env_interval[]= "GLB_INTERVAL";// health check interval
static const char env_watchdog[]= "GLB_WATCHDOG";// watchdog spec string

// Defaults relevant to ENV
Expand Down
2 changes: 2 additions & 0 deletions src/glb_pool.c
Expand Up @@ -134,7 +134,9 @@ typedef enum pool_fd_ops

//#define FD_SETSIZE 1024; // leater get it from select.h

#ifndef USE_EPOLL
static const pollfd_t zero_pollfd = { 0, };
#endif /* !EPOLL */

/*!
* @return negative error code or the index of file descriptor in the set
Expand Down

0 comments on commit f390f23

Please sign in to comment.