From 3c605b7c2798ba5cb3ae8afdadc31f68337228b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Karas?= Date: Tue, 15 Jun 2021 09:23:39 +0200 Subject: [PATCH] dnsproxy: Suppress GCC warning stringop-overflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Recently added check for buffer size breaks build with GCC 10.3.0, its internal analysis suspect that code is not correct. Build fails with error: '__builtin_strncpy' specified bound depends on the length of the source argument [-Werror=stringop-overflow=] on src/dnsproxy.c:1794 Signed-off-by: Lukáš Karas --- src/dnsproxy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dnsproxy.c b/src/dnsproxy.c index 38dbdd71..035593e9 100644 --- a/src/dnsproxy.c +++ b/src/dnsproxy.c @@ -41,6 +41,8 @@ #include "connman.h" +#pragma GCC diagnostic ignored "-Wstringop-overflow" + #define debug(fmt...) do { } while (0) #if __BYTE_ORDER == __LITTLE_ENDIAN -- 2.27.0