Module Name:    src
Committed By:   joerg
Date:           Sun Dec 27 12:42:18 UTC 2015

Modified Files:
        src/external/bsd/mdocml/dist: mandoc_aux.h

Log Message:
Mark mandoc_asprintf as printf-like


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/bsd/mdocml/dist/mandoc_aux.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/mdocml/dist/mandoc_aux.h
diff -u src/external/bsd/mdocml/dist/mandoc_aux.h:1.1.1.1 src/external/bsd/mdocml/dist/mandoc_aux.h:1.2
--- src/external/bsd/mdocml/dist/mandoc_aux.h:1.1.1.1	Thu Dec 17 21:58:48 2015
+++ src/external/bsd/mdocml/dist/mandoc_aux.h	Sun Dec 27 12:42:17 2015
@@ -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 <krist...@bsd.lv>
  * Copyright (c) 2014 Ingo Schwarze <schwa...@openbsd.org>
@@ -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);

Reply via email to