diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2023-01-06 19:57:09 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2023-01-07 14:11:02 +0000 |
commit | 1b057efd888664e99dbe2a2ae548f2d2278483b4 (patch) | |
tree | 1cac0384e5380be9b2d1edda6956155e2ff52fb9 /graphics/gimp-app | |
parent | 2f272f43a75711aa7e5e256feb3d8ad7a3458458 (diff) | |
download | ports-1b057efd888664e99dbe2a2ae548f2d2278483b4.tar.gz ports-1b057efd888664e99dbe2a2ae548f2d2278483b4.zip |
graphics/gimp-app: fix build with clang 15
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') [-Wint-conversion]
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.
PR: 268790
Approved by: fluffy (maintainer)
MFH: 2023Q1
Diffstat (limited to 'graphics/gimp-app')
-rw-r--r-- | graphics/gimp-app/files/patch-plug-ins_common_file-dicom.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/gimp-app/files/patch-plug-ins_common_file-dicom.c b/graphics/gimp-app/files/patch-plug-ins_common_file-dicom.c new file mode 100644 index 000000000000..a95402dd819d --- /dev/null +++ b/graphics/gimp-app/files/patch-plug-ins_common_file-dicom.c @@ -0,0 +1,11 @@ +--- plug-ins/common/file-dicom.c.orig 2022-06-12 20:26:00 UTC ++++ plug-ins/common/file-dicom.c +@@ -602,7 +602,7 @@ load_image (const gchar *filename, + (gchar *) value, samples_per_pixel); + g_free (dicominfo); + fclose (DICOM); +- return NULL; ++ return -1; + } + + break; |