[gcc r11-7664] Fix -Wstring-concatenation warning.

Martin Liska marxin@gcc.gnu.org
Mon Mar 15 08:29:20 GMT 2021


https://gcc.gnu.org/g:b516a15371503bae35f2a1c7bc5d7e0c503eefdd

commit r11-7664-gb516a15371503bae35f2a1c7bc5d7e0c503eefdd
Author: Martin Liska <mliska@suse.cz>
Date:   Mon Mar 15 09:27:32 2021 +0100

    Fix -Wstring-concatenation warning.
    
    Fix the following clang warning:
    gcc/spellcheck.c:477:3: warning: suspicious concatenation of string literals in an array initialization;
    did you mean to separate the elements with a comma? [-Wstring-concatenation]
    
    gcc/ChangeLog:
    
            * spellcheck.c: Add missing comma in initialization.

Diff:
---
 gcc/spellcheck.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/spellcheck.c b/gcc/spellcheck.c
index f76e094bc63..c39c5073a26 100644
--- a/gcc/spellcheck.c
+++ b/gcc/spellcheck.c
@@ -473,7 +473,7 @@ static const char * const test_data[] = {
   "foo",
   "food",
   "boo",
-  "1234567890123456789012345678901234567890123456789012345678901234567890"
+  "1234567890123456789012345678901234567890123456789012345678901234567890",
   "abc",
   "ac",
   "ca",


More information about the Gcc-cvs mailing list