remove unused var to avoid warning with gcc 11.1.0

This commit is contained in:
Philippe Teuwen 2021-05-13 19:42:59 +02:00
commit 0b0ca6142d

View file

@ -285,7 +285,6 @@ int main(int argc, char *argv[]) {
exit(1); exit(1);
} }
int gpu = 1;
err = clGetDeviceIDs(ctx.platform_id, CL_DEVICE_TYPE_GPU, 1, &(ctx.device_id), NULL); err = clGetDeviceIDs(ctx.platform_id, CL_DEVICE_TYPE_GPU, 1, &(ctx.device_id), NULL);
if (err != CL_SUCCESS) { if (err != CL_SUCCESS) {
printf("Error: Failed to create a device group!: %d\n", err); printf("Error: Failed to create a device group!: %d\n", err);