Page MenuHomePhabricator | MITK

MITK doesn't build with gcc 8
Closed, ResolvedPublic

Description

VNL in ITK 4.13 is too old, and there are some new warnings detected by gcc 8 which are interpreted as errors. Some can be fixed, some have to be suppressed for now

Event Timeline

nolden created this task.Jun 22 2018, 9:13 AM
nolden claimed this task.Jun 22 2018, 9:34 AM
nolden closed this task as Resolved.Aug 30 2018, 2:53 PM

You mean like

-Wno-error=catch-value=

and

-Wno-error=class-memaccess

?

To avoid this, for example:

MITK/Modules/Core/include/mitkImageToItk.txx:143:11: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘class itk::RGBAPixel<unsigned char>’ with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
     memcpy(output->GetBufferPointer(), imageAccess->GetData(), sizeof(InternalPixelType) * noBytes);
     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~