gcc8 and Wstringop-truncation 33/13233/7
authorMarco Varlese <marco.varlese@suse.com>
Wed, 27 Jun 2018 07:54:44 +0000 (09:54 +0200)
committerDave Barach <openvpp@barachs.net>
Wed, 27 Jun 2018 15:29:47 +0000 (15:29 +0000)
commit99d7a72cbcad959e805e8e8b5efb112e9def69c2
tree1fac922965f751f13e6fcfddf8a1e93c768c6dfd
parentc5ee4fd4aa1f873e5448df3395a178b44e3d55f8
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 <marco.varlese@suse.com>
src/plugins/memif/memif_api.c
src/vlib/linux/pci.c
src/vlibmemory/vlib_api.c
src/vnet/devices/virtio/vhost-user.c