瀏覽代碼

Fix build in C++

Samuel Thibault 8 年之前
父節點
當前提交
b538fb0e70
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/helper.h

+ 1 - 1
tests/helper.h

@@ -108,7 +108,7 @@ static int _starpu_valgrind_print_once STARPU_ATTRIBUTE_UNUSED = 0;
 
 static inline void disable_coredump(void) {
 #ifdef HAVE_GETRLIMIT
-	struct rlimit rlim = { .rlim_cur = 0, .rlim_max = 0 };
+	struct rlimit rlim = { 0, 0 };
 	setrlimit(RLIMIT_CORE, &rlim);
 #endif
 }