Explorar o código

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 %!s(int64=14) %!d(string=hai) anos
pai
achega
4f6d5108e8
Modificáronse 1 ficheiros con 8 adicións e 3 borrados
  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