BUG #15280: Clang 6.0.1 compiler warning - strlcpy
От | PG Bug reporting form |
---|---|
Тема | BUG #15280: Clang 6.0.1 compiler warning - strlcpy |
Дата | |
Msg-id | 153174905252.1395.3143525803051411280@wrigleys.postgresql.org обсуждение исходный текст |
Ответы |
Re: BUG #15280: Clang 6.0.1 compiler warning - strlcpy
|
Список | pgsql-bugs |
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.
В списке pgsql-bugs по дате отправления: