Skip to content

Commit 02b106c

Browse files
committed
Resolve -Wunused-parameter warning
Handle -Wstrict-prototypes warnings as an error.
1 parent 78d0f26 commit 02b106c

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ option(USE_GETTEXT "Enable interantionalization" OFF)
1717

1818
add_compile_options(-Wall -pedantic -Wextra)
1919
add_compile_options(-Werror=unused-label)
20+
add_compile_options(-Werror=unused-parameter)
2021

2122
set(SOURCES
2223
colors.c

nc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,9 @@ void show_stats_t(int y, int x, char *header, stats_t *data, char abbreviate)
761761

762762
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)
763763
{
764+
(void)tcp_rtt_stats;
765+
(void)re_tx;
766+
(void)pmtu;
764767
char force_redraw = 0;
765768
struct pollfd p = { 0, POLLIN, 0 };
766769

0 commit comments

Comments
 (0)