Source-Changes-HG archive

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

[src/trunk]: src/external/cddl/osnet/dist/lib/libdtrace/common Mark __printfl...



details:   https://anonhg.NetBSD.org/src/rev/628c92ac7811
branches:  trunk
changeset: 343441:628c92ac7811
user:      roy <roy%NetBSD.org@localhost>
date:      Thu Feb 04 16:48:34 2016 +0000

description:
Mark __printflike and __dead.

diffstat:

 external/cddl/osnet/dist/lib/libdtrace/common/dt_parser.h |  19 ++++++++------
 1 files changed, 11 insertions(+), 8 deletions(-)

diffs (31 lines):

diff -r a43a2d8046a3 -r 628c92ac7811 external/cddl/osnet/dist/lib/libdtrace/common/dt_parser.h
--- a/external/cddl/osnet/dist/lib/libdtrace/common/dt_parser.h Thu Feb 04 15:23:29 2016 +0000
+++ b/external/cddl/osnet/dist/lib/libdtrace/common/dt_parser.h Thu Feb 04 16:48:34 2016 +0000
@@ -262,16 +262,19 @@
        YYS_CONTROL     /* lex/yacc state for parsing control lines */
 } yystate_t;
 
-extern void dnerror(const dt_node_t *, dt_errtag_t, const char *, ...);
-extern void dnwarn(const dt_node_t *, dt_errtag_t, const char *, ...);
+extern void dnerror(const dt_node_t *, dt_errtag_t, const char *, ...)
+    __printflike(3, 4) __dead;
+extern void dnwarn(const dt_node_t *, dt_errtag_t, const char *, ...)
+    __printflike(3, 4);
 
-extern void xyerror(dt_errtag_t, const char *, ...);
-extern void xywarn(dt_errtag_t, const char *, ...);
-extern void xyvwarn(dt_errtag_t, const char *, va_list);
+extern void xyerror(dt_errtag_t, const char *, ...) __printflike(2, 3)
+    __dead;
+extern void xywarn(dt_errtag_t, const char *, ...) __printflike(2, 3);
+extern void xyvwarn(dt_errtag_t, const char *, va_list) __printflike(2, 0);
 
-extern void yyerror(const char *, ...);
-extern void yywarn(const char *, ...);
-extern void yyvwarn(const char *, va_list);
+extern void yyerror(const char *, ...) __printflike(1, 2) __dead;
+extern void yywarn(const char *, ...) __printflike(1, 2);
+extern void yyvwarn(const char *, va_list) __printflike(1, 0);
 
 extern void yylabel(const char *);
 extern void yybegin(yystate_t);



Home | Main Index | Thread Index | Old Index