Skip to content

Commit

Permalink
Merge pull request #2584 from karolyi/master
Browse files Browse the repository at this point in the history
Remove unused variables due to compilation failure
  • Loading branch information
xrmx authored Nov 23, 2023
2 parents d15c291 + 7cfe961 commit b5600ad
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions core/ini.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 0 additions & 4 deletions core/master.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 0 additions & 2 deletions core/yaml.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";

Expand All @@ -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)
Expand Down

0 comments on commit b5600ad

Please sign in to comment.