Skip to content

Commit

Permalink
core/logger.c: mark compilation-unit private variables static
Browse files Browse the repository at this point in the history
Fixes compiler diagnostics:

logger.c:29:6: warning: no previous extern declaration for non-static
    variable '_mowgli_log_buf' [-Wmissing-variable-declarations]

logger.c:30:17: warning: no previous extern declaration for non-static
    variable '_mowgli_log_cb' [-Wmissing-variable-declarations]

logger.c:33:1: warning: no previous prototype for function
    'mowgli_log_cb_default' [-Wmissing-prototypes]
  • Loading branch information
aaronmdjones committed Jan 18, 2019
1 parent 54f1191 commit d0e259a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libmowgli/core/logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@

#define MOWGLI_LOG_BUF_SIZE 4096

char _mowgli_log_buf[MOWGLI_LOG_BUF_SIZE];
mowgli_log_cb_t _mowgli_log_cb;
static char _mowgli_log_buf[MOWGLI_LOG_BUF_SIZE];
static mowgli_log_cb_t _mowgli_log_cb;

void
static void
mowgli_log_cb_default(const char *buf)
{
fprintf(stderr, "%s\n", buf);
Expand Down

0 comments on commit d0e259a

Please sign in to comment.