Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 886481

Summary: media-gfx/gimp failed to build in clang, incompatible pointer to integer conversion
Product: Gentoo Linux Reporter: Sheng Yu <syu.os>
Component: Current packagesAssignee: Sergey Torokhov <torokhov-s-a>
Status: RESOLVED DUPLICATE    
Severity: normal CC: jstein, proxy-maint
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch

Description Sheng Yu 2022-12-17 16:48:54 UTC
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;
                         ^~~~
/usr/lib/llvm/15/bin/../../../../lib/clang/15.0.5/include/stddef.h:89:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^~~~~~~~~~


Reproducible: Always
Comment 1 Sheng Yu 2022-12-17 16:49:36 UTC
Created attachment 843221 [details, diff]
patch
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-18 00:43:37 UTC

*** This bug has been marked as a duplicate of bug 875413 ***
Comment 3 Daniel Novomeský 2022-12-18 08:08:25 UTC
The patch is not OK.
Instead return (gint32) NULL; use
return -1;
Comment 4 Sergey Torokhov 2022-12-18 09:35:31 UTC
(In reply to Daniel Novomeský from comment #3)
> The patch is not OK.
> Instead return (gint32) NULL; use
> return -1;

Daniel thank you for your offered patch for upstream. I saw all these issues and don't ignore it. I just can't reach my PC for careful retesting it :( I very hope to review all gimp related issues next week and report unresolved to upstream too.