pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: steven.winfield@cantabcapital.com
Subject: BUG #15280: Clang 6.0.1 compiler warning - strlcpy
Date: Mon, 16 Jul 2018 13:50:52 +0000
Message-ID: <153174905252.1395.3143525803051411280@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15280
Logged by:          Steven Winfield
Email address:      steven.winfield@cantabcapital.com
PostgreSQL version: 11beta2
Operating system:   RHEL 7.4
Description:        

Hi,

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]
                        strlcpy(full_path, progname, sizeof(full_path));
                        ^
pg_rewind.c:724:4: note: include the header <string.h> or explicitly provide
a declaration for 'strlcpy'
1 warning generated.

In my pg_config.h I have:
#define HAVE_DECL_STRLCPY 1

...and HAVE_STRLCPY is left undefined:
/* #undef HAVE_STRLCPY */

Best wishes,
Steven.



view thread (3+ messages)  latest in thread

Message-ID: <153174905252.1395.3143525803051411280@wrigleys.postgresql.org>
Permalink:  ../153174905252.1395.3143525803051411280@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/153174905252.1395.3143525803051411280@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, steven.winfield@cantabcapital.com
  Subject: Re: BUG #15280: Clang 6.0.1 compiler warning - strlcpy
  In-Reply-To: <153174905252.1395.3143525803051411280@wrigleys.postgresql.org>
  References: <153174905252.1395.3143525803051411280@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox