Re: clang warning on master - Mailing list pgsql-hackers

From Tom Lane
Subject Re: clang warning on master
Date
Msg-id 23050.1409335383@sss.pgh.pa.us
Whole thread Raw
In response to clang warning on master  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> I see a lot of warnings

> [pavel@localhost postgresql]$ make all | grep warning
> exec.c:280:2: warning: implicitly declaring library function 'strlcpy' with
> type 'unsigned long (char *, const char *, unsigned long)'
>         strlcpy(link_buf, fname, sizeof(link_buf));
>         ^
> exec.c:280:2: note: please include the header <string.h> or explicitly
> provide a declaration for 'strlcpy'
> 1 warning generated.

[ raised eyebrow... ]  exec.c certainly includes <string.h> already
(via c.h).  I think you should complain to your compiler vendor.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: On partitioning
Next
From: Hannu Krosing
Date:
Subject: Re: On partitioning