[OE-core] [PATCH] gettext: Fix overloadable error with clang
raj.khem at gmail.com
Thu Jan 16 15:17:20 UTC 2020
On Thu, Jan 16, 2020 at 5:13 AM Adrian Bunk <bunk at stusta.de> wrote:
> On Wed, Jan 15, 2020 at 08:46:09PM -0800, Khem Raj wrote:
> > Clang detects that getcwd is being re-declared and signatures don't
> > match, simple solution is to let clang use overloadable attribute
> > +Fixes
> > +dcigettext.c:147:7: error: redeclaration of 'getcwd' must have the 'overloadable' attribute
> > +-char *getcwd ();
> Looks like a bug in clang to me, and should be fixed there.
> The code does not tell anything regarding the parameters,
> but clang seems to misinterpret it as "no parameters".
its conflicting with declaration from glibc system headers
usr/include/unistd.h:extern char *getcwd (char *__buf, size_t __size)
More information about the Openembedded-core