gcc8 and Wstringop-truncation 82/13382/2
authorMarco Varlese <[email protected]>
Wed, 27 Jun 2018 07:54:44 +0000 (09:54 +0200)
committerChris Luke <[email protected]>
Mon, 9 Jul 2018 12:28:30 +0000 (12:28 +0000)
commitca7a68e0fba9de14e18801c535d87da7fa0e4fa3
tree82a017053a7500ab9a886310dc2014b5a0055a50
parent6bb589c8acc4e3c27bcbd84d9fcd98ba0777db36
gcc8 and Wstringop-truncation

gcc8 introduced a new warning (Wstringop-truncation) which in our case
is being treated as error.
Disabling the warning globally might introduce bugs related to string
truncation which are not desired by the developer (e.g. bug).
Instead, this patch disables the warning only for those occurences
which have been verified to be non-bugs but the desired behaviour as per
developer will.

Change-Id: I0f04ff6b4fad44061e80a65af633fd7e0148a0c5
Signed-off-by: Marco Varlese <[email protected]>
(cherry picked from commit 99d7a72cbcad959e805e8e8b5efb112e9def69c2)
src/plugins/memif/memif_api.c
src/vlib/linux/pci.c
src/vlibmemory/vlib_api.c
src/vnet/devices/virtio/vhost-user.c