Skip to content

Warning in itkPNGImageIO: passing argument aliases -Wrestrict #57

Closed

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

Activity

  1. added
    type:Compiler
    and removed on Sep 10, 2018
  2. added a commit that references this issue on May 6, 2026
  3. added a commit that references this issue on May 7, 2026
  4. added a commit that references this issue on May 12, 2026
  5. added a commit that references this issue on May 19, 2026
  6. added a commit that references this issue on Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:Compiler

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions