Fix compiling issue with GCC-8.x in string test functions 29/16429/2
authorLijian.Zhang <Lijian.Zhang@arm.com>
Tue, 4 Dec 2018 06:45:41 +0000 (22:45 -0800)
committerDave Barach <openvpp@barachs.net>
Fri, 14 Dec 2018 13:26:46 +0000 (13:26 +0000)
commitac475f4bf4d10ae603f57a406ef607f0de840328
tree65ef9c750a3e548bb0877fccfeba26333849c325
parent41b923a175a95ad61f2f7e0fc44727f78d8ec29e
Fix compiling issue with GCC-8.x in string test functions

Same pointer is passed to two or more restrict-qualified parameters of a function.

vpp/src/plugins/unittest/string_test.c: In function ‘test_strcpy_s’:
vpp/src/plugins/unittest/string_test.c:562:19: error: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Werror=restrict]
err = strcpy_s (dst, s1size, dst);
^~~ ~~~

Change-Id: Ica06b457bbcbf2d552eec380976c37f9fd447b1c
Signed-off-by: Lijian Zhang <Lijian.Zhang@arm.com>
Reviewed-by: Sirshak Das <sirdas@arm.com>
src/plugins/unittest/string_test.c