declare ret_val global variable static (#147)
authorBen Ashbaugh <ben.ashbaugh@intel.com>
Wed, 30 Jun 2021 20:10:48 +0000 (13:10 -0700)
committerGitHub <noreply@github.com>
Wed, 30 Jun 2021 20:10:48 +0000 (13:10 -0700)
It would be better to remove all global ret_val variables, but
this would be a much bigger change.

test/loader_test/test_kernel.c

index a53e9805ab637447cc289a203af2bad5b14fc4b9..be116edb312e5376178aad5a350d89957cc7682d 100644 (file)
@@ -15,7 +15,7 @@ extern cl_event event;
 extern cl_context  context;
 extern cl_command_queue command_queue;
 extern cl_device_id devices;
-int ret_val;
+static int ret_val;
 extern void CL_CALLBACK setevent_callback(cl_event _a, cl_int _b, void* _c);
 extern void CL_CALLBACK setprintf_callback(cl_context _a, cl_uint _b, char* _c, void* _d );