summaryrefslogtreecommitdiff
path: root/src/tc-string.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2023-07-15 09:47:16 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2023-07-15 09:47:16 +0200
commit163bc6d7fc268bdb1c7cc03699f69d0c5cc0b4cd (patch)
treeeec08d80894534fefc488261dfcb9a5c246cb523 /src/tc-string.c
parent980784c1917f19bfd2e9b11faca76d14e8589daa (diff)
New upstream version 4.14upstream/4.14
Diffstat (limited to 'src/tc-string.c')
-rw-r--r--src/tc-string.c4
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);