]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-fts: test-fts-filter - Fix clang suspicious concatenation of string literals...
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 29 Oct 2020 10:34:57 +0000 (12:34 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 29 Oct 2020 10:34:57 +0000 (12:34 +0200)
Fixes:
warning: suspicious concatenation of string literals in an array initialization; did you mean to separate the elements with a comma? [-Wstring-concatenation]

src/lib-fts/test-fts-filter.c

index 84bf90bfb1d3a3d94f127c9a40af7cf2c3804e5c..f93cc7401aea57fae5e160335b803275939f1ef0 100644 (file)
@@ -515,8 +515,8 @@ static void test_fts_filter_normalizer_swedish_short(void)
                "Vem",
                "\xC3\x85",
                "\xC3\x85\xC3\x84\xC3\x96",
-               "Vem kan segla f\xC3\xB6rutan vind?\n"
-               "\xC3\x85\xC3\x84\xC3\x96\xC3\xB6\xC3\xA4\xC3\xA5"
+               ("Vem kan segla f\xC3\xB6rutan vind?\n"
+                "\xC3\x85\xC3\x84\xC3\x96\xC3\xB6\xC3\xA4\xC3\xA5")
        };
        const char *expected_output[] = {
                "vem",
@@ -550,8 +550,8 @@ static void test_fts_filter_normalizer_swedish_short_default_id(void)
                "Vem",
                "\xC3\x85",
                "\xC3\x85\xC3\x84\xC3\x96",
-               "Vem kan segla f\xC3\xB6rutan vind?\n"
-               "\xC3\x85\xC3\x84\xC3\x96\xC3\xB6\xC3\xA4\xC3\xA5"
+               ("Vem kan segla f\xC3\xB6rutan vind?\n"
+                "\xC3\x85\xC3\x84\xC3\x96\xC3\xB6\xC3\xA4\xC3\xA5")
        };
        const char *expected_output[] = {
                "vem",