Skip to content

Commit

Permalink
Fix unused args errors in release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Sympatron committed Nov 11, 2024
1 parent 01950bf commit 795088a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ static inline void logger_log_set_color(logger_t *ctx, const char *color)
assert(ret == len);
ARG_UNUSED(ret); /* squash warning in Release builds */
}
#else
ARG_UNUSED(ctx);
ARG_UNUSED(color);
#endif
}

Expand Down
3 changes: 3 additions & 0 deletions src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,15 @@ struct timezone {

int gettimeofday(struct timeval * tp, struct timezone * tzp)
{
ARG_UNUSED(tzp);
tp->tv_sec = 0;
tp->tv_usec = 0;
return 0;
}

int add_iso8601_utc_datetime(char* buf, size_t size) {
ARG_UNUSED(buf);
ARG_UNUSED(size);
return 0;
}

Expand Down

0 comments on commit 795088a

Please sign in to comment.