On Fri, May 25, 2018 at 03:20:24PM -0600, Jason Gunthorpe wrote: > The latest gcc in tumbleweed reports: > > ../srp_daemon/srp_daemon.c: In function 'get_shared_pkeys': > ../srp_daemon/srp_daemon.c:1080:50: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] > snprintf(pkey_file, sizeof(pkey_file), "pkeys/%d", pkey_index); > > The given format string requires 18 bytes to handle all expansions of %d > > Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxxxx> > --- > srp_daemon/srp_daemon.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Out of curiosity, what is the exact version of gcc? Thanks, Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
Attachment:
signature.asc
Description: PGP signature