mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Enable -Werror for GCC/Clang builds (#786)
* Enable -Werror for GCC/Clang builds Fixes many of the errors this produces, and disables a handful that didn't have solutions that were obvious (to me). * Check for `-W*` flags empirically * Remove cl_APPLE_fp64_basic_ops support * Undo NAN conversion fix * Add comments to warning override flags * Remove unneeded STRINGIFY definition * Fix tautological compare issue in basic * Use ABS_ERROR macro in image tests * Use fabs for ABS_ERROR macro * Move ABS_ERROR definition to common header
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
|
||||
extern bool gDebugTrace, gTestSmallImages, gTestMaxImages, gDeviceLt20;
|
||||
|
||||
typedef struct image_kernel_data
|
||||
struct image_kernel_data
|
||||
{
|
||||
cl_int width;
|
||||
cl_int channelType;
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
extern bool gDebugTrace, gTestSmallImages, gTestMaxImages, gDeviceLt20;
|
||||
|
||||
typedef struct image_kernel_data
|
||||
struct image_kernel_data
|
||||
{
|
||||
cl_int width;
|
||||
cl_int arraySize;
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
extern bool gDebugTrace, gTestSmallImages, gTestMaxImages, gDeviceLt20;
|
||||
|
||||
typedef struct image_kernel_data
|
||||
struct image_kernel_data
|
||||
{
|
||||
cl_int width;
|
||||
cl_int height;
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
extern bool gDebugTrace, gTestSmallImages, gTestMaxImages, gDeviceLt20;
|
||||
|
||||
typedef struct image_kernel_data
|
||||
struct image_kernel_data
|
||||
{
|
||||
cl_int width;
|
||||
cl_int height;
|
||||
|
||||
@@ -111,7 +111,8 @@ int test_image_set( cl_device_id device, cl_context context, cl_command_queue qu
|
||||
gDeviceLt20 = true;
|
||||
}
|
||||
|
||||
if (version_check = (version < Version(1,2))) {
|
||||
if ((version_check = (version < Version(1, 2))))
|
||||
{
|
||||
switch (imageType) {
|
||||
case CL_MEM_OBJECT_IMAGE1D:
|
||||
test_missing_feature(version_check, "image_1D");
|
||||
@@ -120,7 +121,7 @@ int test_image_set( cl_device_id device, cl_context context, cl_command_queue qu
|
||||
case CL_MEM_OBJECT_IMAGE2D_ARRAY:
|
||||
test_missing_feature(version_check, "image_2D_array");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int ret = 0;
|
||||
ret += test_image_type( device, context, queue, imageType, CL_MEM_READ_ONLY );
|
||||
|
||||
Reference in New Issue
Block a user