Bug ID 1030241
Summary cluster-glue fails to build with GCC 7
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Basesystem
Assignee bnc-team-screening@forge.provo.novell.com
Reporter martin.liska@suse.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

[   59s] cl_pidfile.c: In function 'DoLock':
[   59s] cl_pidfile.c:172:29: error: '__builtin___snprintf_chk' output may be
truncated before the last format character [-Werror=format-truncation=]
[   59s]   snprintf(buf, sizeof(buf), "%*ld\n", LOCKSTRLEN-1, mypid);
[   59s]                              ^~~~~~~~
[   59s] In file included from /usr/include/stdio.h:939:0,
[   59s]                  from cl_pidfile.c:18:
[   59s] /usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk'
output between 12 and 13 bytes into a destination of size 12
[   59s]    return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
[   59s]           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[   59s]         __bos (__s), __fmt, __va_arg_pack ());
[   59s]         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Can be tested in openSUSE:Factory:Staging:Gcc7 project.


You are receiving this mail because: