소스 검색

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