Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused variables due to compilation failure #2584

Merged
merged 1 commit into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading