summaryrefslogtreecommitdiff
path: root/bin/expr/expr.y
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2012-03-15 02:02:20 +0000
committerjoerg <joerg@NetBSD.org>2012-03-15 02:02:20 +0000
commit85ebf103375262b27fffdad71fc44b299417f3ff (patch)
treee1ed527b316eb219b289e5214b93f707880a0ca1 /bin/expr/expr.y
parentfa80b16724ce0bd6438d61e3a11855ca361f10d7 (diff)
Add __printflike attribution to use vprintf and friends with an argument
as format string.
Diffstat (limited to 'bin/expr/expr.y')
-rw-r--r--bin/expr/expr.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/expr/expr.y b/bin/expr/expr.y
index f35f249506f..f368b6ee8c1 100644
--- a/bin/expr/expr.y
+++ b/bin/expr/expr.y
@@ -1,4 +1,4 @@
-/* $NetBSD: expr.y,v 1.37 2011/08/25 01:11:47 joerg Exp $ */
+/* $NetBSD: expr.y,v 1.38 2012/03/15 02:02:20 joerg Exp $ */
/*_
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
%{
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: expr.y,v 1.37 2011/08/25 01:11:47 joerg Exp $");
+__RCSID("$NetBSD: expr.y,v 1.38 2012/03/15 02:02:20 joerg Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -430,7 +430,7 @@ yylex(void)
/*
* Print error message and exit with error 2 (syntax error).
*/
-static void
+static __printflike(1, 2) void
yyerror(const char *fmt, ...)
{
va_list arg;