Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37576323
en ru br
ALT Linux repositórios
S:4.4.3.P1-alt1
5.0: 3.0.7-alt1
4.1: 3.0.6-alt2.M41.1
4.0: 3.0.6-alt1
3.0: 3.0.2-alt1

Group :: Sistema/Servidores
RPM: dhcp

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: 0031-Silence-format-truncation-warning.patch
Download


From 0 Mon Sep 17 00:00:00 2001
From: Mikhail Efremov <sem@altlinux.org>
Date: Thu, 6 Dec 2018 20:13:58 +0300
Subject: [PATCH 31] Silence format-truncation warning
Its OK for log message to be truncated.
diff --git a/dhcp/common/parse.c b/dhcp/common/parse.c
index defaced..defaced 100644
--- a/dhcp/common/parse.c
+++ b/dhcp/common/parse.c
@@ -5675,6 +5675,8 @@ int parse_warn (struct parse *cfile, const char *fmt, ...)
 	 * If we truncate we hope the user can get a hint from the log.
 	 */
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat-truncation"
 	/* Prepend the file and line number */
 	snprintf (fbuf, sizeof fbuf, "%s line %d: %s",
 		  cfile -> tlname, cfile -> lexline, mbuf);
@@ -5683,6 +5685,7 @@ int parse_warn (struct parse *cfile, const char *fmt, ...)
 	va_start (list, fmt);
 	vsnprintf (final, sizeof final, fbuf, list);
 	va_end (list);
+#pragma GCC diagnostic pop
 
 	lix = 0;
 	for (i = 0;
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009