Skip to content

Build failure on gcc 7.2.1 #6

@raunraun

Description

@raunraun
/home/raun/workspace/neo/runtime/mem_obj/image.cpp: In static member function ‘static OCLRT::Image* OCLRT::Image::create(OCLRT::Context*, cl_mem_flags, const OCLRT::SurfaceFormatInfo*, const cl_image_desc*, const void*, cl_int&)’:
/home/raun/workspace/neo/runtime/mem_obj/image.cpp:146:24: error: this statement may fall through [-Werror=implicit-fallthrough=]
             imageDepth = imageDesc->image_depth;
             ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/home/raun/workspace/neo/runtime/mem_obj/image.cpp:147:9: note: here
         case CL_MEM_OBJECT_IMAGE2D:

Maybe have a way to disable warnings as errors?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions