]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - test.cpp
Don't generate unused warnings for unused constants
[xonotic/gmqcc.git] / test.cpp
index 6d783f7650781c9997d0feb8c02fa6401189d09f..2614c7f1dd78a5ae525c835a103c80e15ef57926 100644 (file)
--- a/test.cpp
+++ b/test.cpp
@@ -638,6 +638,8 @@ static bool task_propagate(const char *curdir, size_t *pad, const char *defs) {
                 const char      *qcflags = nullptr;
                 task_t           task;
 
+                memset(&task, 0, sizeof(task));
+
                 found ++;
                 if (!tmpl) {
                     con_err("error compiling task template: %s\n", files->d_name);