Skip to content

Warning in itkPNGImageIO: passing argument aliases -Wrestrict #57

@phcerdan

Description

@phcerdan

Description

Warning -Wrestrict in itkPNGImageIO compiling with gcc 8.2

Steps to Reproduce

build master with tests enabled

Actual behavior

/home/user/Software/ITK/src-ITK-master/Modules/IO/PNG/src/itkPNGImageIO.cxx: In member function ‘void itk::PNGImageIO::WriteSlice(const string&, const void*)’:
/home/user/Software/ITK/src-ITK-master/Modules/IO/PNG/src/itkPNGImageIO.cxx:592:20: warning: passing argument 1 to restrict-qualified parameter aliases with argument 2 [-Wrestrict]
   png_set_error_fn(png_ptr, png_ptr,

Reproducibility

Every time

Versions

master

Environment

Linux, gcc 8.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:CompilerCompiler support or related warnings

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions