Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/mdocml/dist Mark mandoc_asprintf as printf-like



details:   https://anonhg.NetBSD.org/src/rev/5d3da9e23654
branches:  trunk
changeset: 812691:5d3da9e23654
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Dec 27 12:42:17 2015 +0000

description:
Mark mandoc_asprintf as printf-like

diffstat:

 external/bsd/mdocml/dist/mandoc_aux.h |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 03e39786eeaf -r 5d3da9e23654 external/bsd/mdocml/dist/mandoc_aux.h
--- a/external/bsd/mdocml/dist/mandoc_aux.h     Sun Dec 27 12:42:14 2015 +0000
+++ b/external/bsd/mdocml/dist/mandoc_aux.h     Sun Dec 27 12:42:17 2015 +0000
@@ -1,4 +1,4 @@
-/*     $Id: mandoc_aux.h,v 1.1.1.1 2015/12/17 21:58:48 christos Exp $ */
+/*     $Id: mandoc_aux.h,v 1.2 2015/12/27 12:42:17 joerg Exp $ */
 /*
  * Copyright (c) 2009, 2011 Kristaps Dzonsons <kristaps%bsd.lv@localhost>
  * Copyright (c) 2014 Ingo Schwarze <schwarze%openbsd.org@localhost>
@@ -18,6 +18,9 @@
 
 __BEGIN_DECLS
 
+#if __GNUC__ - 0 >= 4
+__attribute__((__format__ (__printf__, 2, 3)))
+#endif
 int              mandoc_asprintf(char **, const char *, ...);
 void            *mandoc_calloc(size_t, size_t);
 void            *mandoc_malloc(size_t);



Home | Main Index | Thread Index | Old Index