Selaa lähdekoodia

examples/interface: do not re-use the variable ret as we need it later to detect a ENODEV error

Nathalie Furmento 12 vuotta sitten
vanhempi
commit
c8081e9143
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 4 2
      examples/interface/complex.c

+ 4 - 2
examples/interface/complex.c

@@ -147,8 +147,10 @@ int main(int argc, char **argv)
 
 end:
 #ifdef STARPU_USE_OPENCL
-	ret = starpu_opencl_unload_opencl(&opencl_program);
-	STARPU_CHECK_RETURN_VALUE(ret, "starpu_opencl_unload_opencl");
+	{
+	     int ret2 = starpu_opencl_unload_opencl(&opencl_program);
+	     STARPU_CHECK_RETURN_VALUE(ret2, "starpu_opencl_unload_opencl");
+	}
 #endif
 	starpu_data_unregister(handle1);
 	starpu_data_unregister(handle2);