From 7cfe9614be5ce57a6b2f38508bdeb96b5790df4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20K=C3=A1rolyi?= Date: Thu, 23 Nov 2023 15:45:40 +0100 Subject: [PATCH] Remove unused variables due to compilation failure --- core/ini.c | 3 --- core/master.c | 4 ---- core/yaml.c | 2 -- 3 files changed, 9 deletions(-) diff --git a/core/ini.c b/core/ini.c index 97080bcd9b..9ff18a47a3 100644 --- a/core/ini.c +++ b/core/ini.c @@ -87,8 +87,6 @@ void uwsgi_ini_config(char *file, char *magic_table[]) { char *key; char *val; - int lines = 1; - char *section_asked = "uwsgi"; char *colon; int got_section = 0; @@ -130,7 +128,6 @@ void uwsgi_ini_config(char *file, char *magic_table[]) { if (ini_line == NULL) { break; } - lines++; // skip empty line key = ini_lstrip(ini); diff --git a/core/master.c b/core/master.c index dccd590bd8..e58161687a 100644 --- a/core/master.c +++ b/core/master.c @@ -8,16 +8,12 @@ static void master_check_processes() { if (!uwsgi.die_on_no_workers) return; int alive_processes = 0; - int dead_processes = 0; int i; for (i = 1; i <= uwsgi.numproc; i++) { if (uwsgi.workers[i].cheaped == 0 && uwsgi.workers[i].pid > 0) { alive_processes++; } - else { - dead_processes++; - } } if (uwsgi.die_on_no_workers) { diff --git a/core/yaml.c b/core/yaml.c index edaad760ef..e859435660 100644 --- a/core/yaml.c +++ b/core/yaml.c @@ -211,7 +211,6 @@ void uwsgi_yaml_config(char *file, char *magic_table[]) { #else int depth; int current_depth = 0; - int lines = 1; char *yaml_line; char *section = ""; @@ -221,7 +220,6 @@ void uwsgi_yaml_config(char *file, char *magic_table[]) { if (yaml_line == NULL) { break; } - lines++; // skip empty line if (yaml[0] == 0)