Преглед на файлове

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