projects
/
platform
/
upstream
/
OpenCL-ICD-Loader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f24758
)
declare ret_val global variable static (#147)
author
Ben Ashbaugh
<ben.ashbaugh@intel.com>
Wed, 30 Jun 2021 20:10:48 +0000
(13:10 -0700)
committer
GitHub
<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
patch
|
blob
|
history
diff --git
a/test/loader_test/test_kernel.c
b/test/loader_test/test_kernel.c
index a53e9805ab637447cc289a203af2bad5b14fc4b9..be116edb312e5376178aad5a350d89957cc7682d 100644
(file)
--- a/
test/loader_test/test_kernel.c
+++ b/
test/loader_test/test_kernel.c
@@
-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 );