[Crosstoolchain-logs] [device-tree-compiler] 224/357: dtc: Allow gcc format warnings for check_msg()

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:06:16 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.

commit b7c5eaf3ee93330883ed69c1aae362d039ce5dda
Author: David Gibson <david at gibson.dropbear.id.au>
Date:   Fri Dec 7 18:08:03 2007 +1100

    dtc: Allow gcc format warnings for check_msg()
    
    check_msg() takes printf() like arguments, so tell gcc to produce
    printf() like warnings for it.
    
    Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
 checks.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/checks.c b/checks.c
index 6325ee9..2ce961c 100644
--- a/checks.c
+++ b/checks.c
@@ -87,6 +87,9 @@ struct check {
 #define BATCH_CHECK(nm, lvl, ...) \
 	CHECK(nm, NULL, NULL, NULL, NULL, lvl, __VA_ARGS__)
 
+#ifdef __GNUC__
+static inline void check_msg(struct check *c, const char *fmt, ...) __attribute__((format (printf, 2, 3)));
+#endif
 static inline void check_msg(struct check *c, const char *fmt, ...)
 {
 	va_list ap;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list