Browse Source

gcc: Placate g++.

* gcc-plugin/src/starpu.c (build_variable_from_file_contents): Change
  `contents' to `char *', to avoid C++ invalid conversion from `void *'
  to `char *'.
Ludovic Courtès 13 years ago
parent
commit
aca7ce2ca8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gcc-plugin/src/starpu.c

+ 1 - 1
gcc-plugin/src/starpu.c

@@ -1102,7 +1102,7 @@ build_variable_from_file_contents (location_t loc,
 	error_at (loc, "failed to open %qs: %m", file);
       else
 	{
-	  void *contents;
+	  char *contents;
 
 	  contents = mmap (NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0);
 	  if (contents == NULL)