浏览代码

gcc: Get rid of GCC warnings in the test suite.

* gcc-plugin/tests/lib.h (struct insert_task_argument)[pointer]: Mark as
  `const void *'.
Ludovic Courtès 14 年之前
父节点
当前提交
4f6d5108e8
共有 1 个文件被更改,包括 8 次插入3 次删除
  1. 8 3
      gcc-plugin/tests/lib.h

+ 8 - 3
gcc-plugin/tests/lib.h

@@ -39,9 +39,14 @@ static unsigned int tasks_submitted;
 
 struct insert_task_argument
 {
-  int     type;     /* `STARPU_VALUE', etc. */
-  void   *pointer;  /* Pointer to the expected value.  */
-  size_t  size;     /* Size in bytes of the data pointed to.  */
+  /* `STARPU_VALUE', etc. */
+  int type;
+
+  /* Pointer to the expected value.  */
+  const void *pointer;
+
+  /* Size in bytes of the data pointed to.  */
+  size_t size;
 };
 
 /* Pointer to a zero-terminated array listing the expected