diff --git a/CMakeLists.txt b/CMakeLists.txt index ed720f1..ad17fbf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,7 @@ option(USE_GETTEXT "Enable interantionalization" OFF) add_compile_options(-Wall -pedantic -Wextra) add_compile_options(-Werror=unused-label) +add_compile_options(-Werror=unused-parameter) set(SOURCES colors.c diff --git a/nc.c b/nc.c index 5dbd837..3c92196 100644 --- a/nc.c +++ b/nc.c @@ -761,6 +761,9 @@ void show_stats_t(int y, int x, char *header, stats_t *data, char abbreviate) void update_stats(stats_t *resolve, stats_t *connect, stats_t *request, stats_t *total, stats_t *ssl_setup, int n_ok, int n_fail, const char *last_connect_str, const char *fp, char use_tfo, char dg, stats_t *st_to, stats_t *tcp_rtt_stats, int re_tx, int pmtu, int tos, stats_t *close_st, stats_t *t_write, int n_cookies, char abbreviate, stats_t *stats_header_size) { + (void)tcp_rtt_stats; + (void)re_tx; + (void)pmtu; char force_redraw = 0; struct pollfd p = { 0, POLLIN, 0 };