diff --git a/core/ini.c b/core/ini.c index 97080bcd9..9ff18a47a 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 dccd590bd..e58161687 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 edaad760e..e85943566 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)