mirror of
https://github.com/QingdaoU/Judger.git
synced 2024-12-29 16:31:42 +00:00
fix unused warning
This commit is contained in:
parent
741a4c5541
commit
78d5d6388a
2
judger.c
2
judger.c
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
static PyObject *judger_run(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *judger_run(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
struct config config;
|
struct config config;
|
||||||
struct result result = {0, 0, 0, 0, 0, 1};
|
struct result result = {0, 0, 0, 0, 0};
|
||||||
PyObject *args_list = NULL, *env_list = NULL, *use_sandbox = NULL, *next = NULL, *args_iter = NULL, *env_iter = NULL;
|
PyObject *args_list = NULL, *env_list = NULL, *use_sandbox = NULL, *next = NULL, *args_iter = NULL, *env_iter = NULL;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
static char *kwargs_list[] = {"path", "in_file", "out_file", "max_cpu_time",
|
static char *kwargs_list[] = {"path", "in_file", "out_file", "max_cpu_time",
|
||||||
|
1
runner.c
1
runner.c
@ -31,7 +31,6 @@ void run(struct config *config, struct result *result) {
|
|||||||
struct timeval start, end;
|
struct timeval start, end;
|
||||||
struct rlimit memory_limit;
|
struct rlimit memory_limit;
|
||||||
int signal;
|
int signal;
|
||||||
int return_code;
|
|
||||||
int i;
|
int i;
|
||||||
int syscalls_whitelist[] = {SCMP_SYS(read), SCMP_SYS(fstat),
|
int syscalls_whitelist[] = {SCMP_SYS(read), SCMP_SYS(fstat),
|
||||||
SCMP_SYS(mmap), SCMP_SYS(mprotect),
|
SCMP_SYS(mmap), SCMP_SYS(mprotect),
|
||||||
|
Loading…
Reference in New Issue
Block a user