]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
global: Use ATTR_NONSTRING macro
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 14 Oct 2025 09:38:24 +0000 (12:38 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Tue, 14 Oct 2025 15:27:29 +0000 (15:27 +0000)
src/lib-imap/test-imap-utf7.c
src/lib-index/test-mail-cache.c
src/lib-master/master-service-haproxy.c
src/lib-otp/otp-dictionary.c
src/lib/ostream-multiplex.c
src/lib/test-istream-sized.c

index 216eebf4a7f084407a7cb9ea846c7c133641fca1..ac9892d98a5f2898fae2d72dd14391bc83ac530a 100644 (file)
@@ -98,7 +98,8 @@ static void test_imap_utf7_ucs4_cases(void)
        test_end();
 }
 
-static const char mb64[64]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+,";
+static const char mb64[64] ATTR_NONSTRING =
+       "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+,";
 static void test_imap_utf7_non_utf16(void)
 {
        string_t *dest, *dest2;
index b0c97b81088fc7d24b92f9afedbcba9d7b5853d6..352e57f26a927c760444493efd15cd1b128b0659 100644 (file)
@@ -9,7 +9,7 @@
 struct test_header_data {
        uint32_t line1, line2;
        uint32_t end_of_lines;
-       char headers[8];
+       char headers[8] ATTR_NONSTRING;
 };
 
 enum {
index e5cf4254ea9de93da008848203d9cb1100eff994..1b37e9bcbdb15d082f92f1f4434d4f381c28daad 100644 (file)
@@ -49,7 +49,7 @@ enum {
        HAPROXY_SOCK_DGRAM  = 0x02
 };
 
-static const char haproxy_v2sig[12] =
+static const char haproxy_v2sig[12] ATTR_NONSTRING =
        "\x0D\x0A\x0D\x0A\x00\x0D\x0A\x51\x55\x49\x54\x0A";
 
 struct haproxy_header_v2 {
index 5a1315737c9743e90f616db3dad47b861339097d..073ed9d461537912c4a8b9175a83cc6991a3aa08 100644 (file)
@@ -45,7 +45,7 @@ static const struct hint hints[] = {
 
 struct word {
        const short value;
-       const char word[4];
+       const char word[4] ATTR_NONSTRING;
 };
 
 static const struct word dictionary[2048] = {
index ab981e9c921a59de7027556d90fff8e9f2b9d6fa..b44dbd438238b3d158537b2a7118353fa42f6014 100644 (file)
@@ -38,7 +38,7 @@ struct multiplex_ostream {
        bool destroyed:1;
 };
 
-static unsigned char ostream_multiplex_header[IOSTREAM_MULTIPLEX_HEADER_SIZE] =
+static unsigned char ostream_multiplex_header[IOSTREAM_MULTIPLEX_HEADER_SIZE] ATTR_NONSTRING =
        "\xFF\xFF\xFF\xFF\xFF\x00\x02"
         IOSTREAM_MULTIPLEX_CHANNEL_SWITCH_PREFIX;
 
index 82fa6631f3380a4267c898af5e2c081dfebedfc8..0d0e36b646fd2b362643a645e139fd56fbbb51d4 100644 (file)
@@ -55,7 +55,7 @@ run_test(const char *sized_input, uoff_t sized_size, int stream_errno)
 
 static void test_istream_sized_full(bool exact)
 {
-       const unsigned char test_data[10] = "1234567890";
+       const unsigned char test_data[10] ATTR_NONSTRING = "1234567890";
        struct istream *test_input, *input;
        unsigned int i, j;
        int expected_errno;