From 20d9298ce0316749636b8c16093b376d14b6160d Mon Sep 17 00:00:00 2001 From: Kevin Traynor Date: Tue, 20 Apr 2021 14:21:49 +0100 Subject: [PATCH] test/cmdline: fix inputs array [ upstream commit 414245bbc527b6ff6da0dc0787c6e5c67556d9ec ] clang 12 gives a warning about string concatenation in arrays. In this case it looks like it was unintentional to concatenate the strings. Separate with a comma. $ clang --version clang version 12.0.0 (Fedora 12.0.0-0.3.rc1.fc34) ../app/test/test_cmdline_ipaddr.c:259:3: warning: suspicious concatenation of string literals in an array initialization; did you mean to separate the elements with a comma? [-Wstring-concatenation] "random invalid text", ^ ../app/test/test_cmdline_ipaddr.c:258:3: note: place parentheses around the string literal to silence warning "1234:1234:1234:1234:1234:1234:1234:1234:1234:1234:1234" ^ Signed-off-by: Kevin Traynor --- app/test/test_cmdline_ipaddr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_cmdline_ipaddr.c b/app/test/test_cmdline_ipaddr.c index 088cd5afc3..312ed79c49 100644 --- a/app/test/test_cmdline_ipaddr.c +++ b/app/test/test_cmdline_ipaddr.c @@ -255,7 +255,7 @@ const char * ipaddr_invalid_strs[] = { /** misc **/ /* too long */ - "1234:1234:1234:1234:1234:1234:1234:1234:1234:1234:1234" + "1234:1234:1234:1234:1234:1234:1234:1234:1234:1234:1234", "random invalid text", "", "\0",