RE: BUG #15280: Clang 6.0.1 compiler warning - strlcpy

From: Steven Winfield <Steven(dot)Winfield(at)cantabcapital(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: RE: BUG #15280: Clang 6.0.1 compiler warning - strlcpy
Date: 2018-07-16 16:58:49
Message-ID: E9FA92C2921F31408041863B74EE4C2001AF020CCF@CCPMAILDAG03.cantab.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: 16 July 2018 16:27
To: Steven Winfield
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #15280: Clang 6.0.1 compiler warning - strlcpy

=?utf-8?q?PG_Bug_reporting_form?= <noreply(at)postgresql(dot)org> writes:
> While compiling 11beta2 using clang 6.0.1 this warning crops up quite a lot
> in an otherwise quiet build process - so I thought it might be of
> interest:
> pg_rewind.c:724:4: warning: implicitly declaring library function 'strlcpy'
> with type 'unsigned long (char *, const char *, unsigned long)'
> [-Wimplicit-function-declaration]

Yeah, this is a known problem caused by autoconf doing its "is this
function declared" test in a way that clang doesn't play nice with.

There's a fix for this upstream:

http://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=82ef7805faffa151e724aa76c245ec590d174580<http://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=82ef7805faffa151e724aa76c245ec590d174580>

and we've been patiently waiting for an autoconf release that
incorporates it ...

Thanks - I'll add my voice to the release requests.

Steve

This email is confidential. If you are not the intended recipient, please advise us immediately and delete this message.
The registered name of Cantab- part of GAM Systematic is Cantab Capital Partners LLP.
See - http://www.gam.com/en/Legal/Email+disclosures+EU for further information on confidentiality, the risks of non-secure electronic communication, and certain disclosures which we are required to make in accordance with applicable legislation and regulations.
If you cannot access this link, please notify us by reply message and we will send the contents to you.

GAM Holding AG and its subsidiaries (Cantab – GAM Systematic) will collect and use information about you in the course of your interactions with us.
Full details about the data types we collect and what we use this for and your related rights is set out in our online privacy policy at https://www.gam.com/en/legal/privacy-policy.
Please familiarise yourself with this policy and check it from time to time for updates as it supplements this notice.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tomas Vondra 2018-07-16 21:48:43 Re: BUG #15281: Set role does not affect superuser privleges
Previous Message Tom Lane 2018-07-16 15:27:29 Re: BUG #15280: Clang 6.0.1 compiler warning - strlcpy