fix unused warning

This commit is contained in:
virusdefender 2016-01-23 15:36:34 +08:00
parent 741a4c5541
commit 78d5d6388a
2 changed files with 1 additions and 2 deletions

View File

@ -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",

View File

@ -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),