diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c3f8aa..30932b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,5 @@ cmake_minimum_required(VERSION 3.12) -add_compile_options(-Wall -pedantic -Wextra) - project(httping LANGUAGES C VERSION "4.4.0") # Create compile_commands.json file @@ -17,6 +15,9 @@ option(USE_FFTW3 "Enable FFTW3 backend (depedns on USE_TUI)" OFF) option(USE_SSL "Enable SSL support" OFF) option(USE_GETTEXT "Enable interantionalization" OFF) +add_compile_options(-Wall -pedantic -Wextra) +add_compile_options(-Werror=unused-label) + set(SOURCES colors.c cookies.c diff --git a/main.c b/main.c index 9ad5dbb..9a6aca7 100644 --- a/main.c +++ b/main.c @@ -2464,7 +2464,9 @@ int main(int argc, char *argv[]) if (!quiet && !machine_readable && !nagios_mode && !json_output) stats_line(1, complete_url, count, curncount, err, ok, started_at, verbose, &t_total, avg_httping_time, show_Bps ? &bps : NULL); +#if HAVE_OPENSSL error_exit: +#endif if (nagios_mode) return nagios_result(ok, nagios_mode, nagios_exit_code, avg_httping_time, nagios_warn, nagios_crit);