Skip to content

Commit

Permalink
Merge pull request #361 from avm/fix-unused-warning
Browse files Browse the repository at this point in the history
serve_2.c: fix "unused variable" warning.
  • Loading branch information
blackav authored Oct 11, 2024
2 parents 1cbca4b + 1aedf37 commit a9e54ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/serve_2.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,12 +691,12 @@ serve_build_compile_dirs(
const unsigned char *queue_dir = NULL;
const unsigned char *heartbeat_dir = NULL;

#if defined EJUDGE_COMPILE_SPOOL_DIR
unsigned char src_buf[PATH_MAX];
unsigned char queue_buf[PATH_MAX];
unsigned char heartbeat_buf[PATH_MAX];
__attribute__((unused)) int r;

#if defined EJUDGE_COMPILE_SPOOL_DIR
if (lang && lang->compile_server_id && lang->compile_server_id[0]) {
id = lang->compile_server_id;
} else if (global->compile_server_id && global->compile_server_id[0]) {
Expand Down

0 comments on commit a9e54ea

Please sign in to comment.