diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2023-07-15 09:47:16 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2023-07-15 09:47:16 +0200 |
commit | 163bc6d7fc268bdb1c7cc03699f69d0c5cc0b4cd (patch) | |
tree | eec08d80894534fefc488261dfcb9a5c246cb523 /src/tc-string.c | |
parent | 980784c1917f19bfd2e9b11faca76d14e8589daa (diff) |
New upstream version 4.14upstream/4.14
Diffstat (limited to 'src/tc-string.c')
-rw-r--r-- | src/tc-string.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tc-string.c b/src/tc-string.c index 77235c2..9bf668b 100644 --- a/src/tc-string.c +++ b/src/tc-string.c @@ -84,12 +84,16 @@ static void t_strncat(void) { char data[5] = "DATA"; +#ifndef __clang__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wformat-truncation" +#endif if (snprintf(data, sizeof(data), "12345678") >= static_cast(ssize_t, sizeof(data))) printf("Not enough space\n"); +#ifndef __clang__ #pragma GCC diagnostic pop +#endif printf("String: >%s<\n", data); HX_strlcat(data, "pqrstuv__", 2); |