SWDEV-256292 - Fix build failure when using lightning to build

clang complains there are multiple definitions of ret_val

Change-Id: I949af23e0658b28b339b378c9c0e4681d83d5f5a
Этот коммит содержится в:
Jason Tang
2020-11-09 11:19:20 -05:00
родитель ebd1a4a150
Коммит ee2e91912b
7 изменённых файлов: 7 добавлений и 7 удалений
+1 -1
Просмотреть файл
@@ -4,7 +4,7 @@
extern cl_command_queue command_queue;
cl_int ret_val;
static cl_int ret_val;
const struct clRetainCommandQueue_st clRetainCommandQueueData[NUM_ITEMS_clRetainCommandQueue] = {
{NULL}
+1 -1
Просмотреть файл
@@ -12,7 +12,7 @@ extern cl_mem buffer;
extern cl_command_queue command_queue;
extern cl_event event;
extern cl_context_properties context_properties[3];
cl_int ret_val;
static cl_int ret_val;
cl_mem ret_mem;
struct clCreateFromGLBuffer_st clCreateFromGLBufferData[NUM_ITEMS_clCreateFromGLBuffer] = {
+1 -1
Просмотреть файл
@@ -10,7 +10,7 @@ extern cl_command_queue command_queue;
extern cl_event event;
extern cl_mem buffer;
int ret_val;
static int ret_val;
const struct clGetSupportedImageFormats_st clGetSupportedImageFormatsData[NUM_ITEMS_clGetSupportedImageFormats] =
{
+1 -1
Просмотреть файл
@@ -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 );
+1 -1
Просмотреть файл
@@ -8,7 +8,7 @@ extern cl_platform_id platform;
extern cl_device_id devices;
int ret_val;
static int ret_val;
struct clRetainContext_st clRetainContextData[NUM_ITEMS_clRetainContext] =
{
+1 -1
Просмотреть файл
@@ -7,7 +7,7 @@ extern cl_program program;
extern cl_platform_id platform;
extern cl_device_id devices;
int ret_val;
static int ret_val;
extern void CL_CALLBACK program_callback(cl_program _a, void* _b);
+1 -1
Просмотреть файл
@@ -3,7 +3,7 @@
#include <platform/icd_test_log.h>
extern cl_sampler sampler;
int ret_val;
static int ret_val;
const struct clRetainSampler_st clRetainSamplerData[NUM_ITEMS_clRetainSampler]=
{