[Bug 268790] graphics/gimp-app: fix build with clang 15

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 06 Jan 2023 20:00:53 UTC

            Bug ID: 268790
           Summary: graphics/gimp-app: fix build with clang 15
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: gnome@FreeBSD.org
          Reporter: dim@FreeBSD.org
          Assignee: gnome@FreeBSD.org
             Flags: maintainer-feedback?(gnome@FreeBSD.org)

During an exp-run for llvm 15 (see bug 265425), it turned out that
graphics/gimp-app failed to build with clang 15:

  file-dicom.c:605:26: error: incompatible pointer to integer conversion
returning 'void *' from a function with result type 'gint32' (aka 'int')
                    return NULL;

This is because the return statement is a function that should return an
integer, not a pointer. Replace it with the error value -1, as used
elsewhere in the function.

You are receiving this mail because:
You are the assignee for the bug.