From 146b86bde33bb3cd6a398101dad02073b8b340c5 Mon Sep 17 00:00:00 2001 From: doug <> Date: Fri, 14 Nov 2014 03:20:37 +0000 Subject: [PATCH] Add gcc printf format attributes to yyerror() in parse.y files. No yyerror() calls needed to be changed. ok bluhm@ --- src/usr.sbin/ntpd/parse.y | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/usr.sbin/ntpd/parse.y b/src/usr.sbin/ntpd/parse.y index 67683a1c..b5567912 100644 --- a/src/usr.sbin/ntpd/parse.y +++ b/src/usr.sbin/ntpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.53 2014/11/03 20:15:31 bluhm Exp $ */ +/* $OpenBSD: parse.y,v 1.54 2014/11/14 03:20:37 doug Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer @@ -48,7 +48,9 @@ struct file *pushfile(const char *); int popfile(void); int yyparse(void); int yylex(void); -int yyerror(const char *, ...); +int yyerror(const char *, ...) + __attribute__((__format__ (printf, 1, 2))) + __attribute__((__nonnull__ (1))); int kw_cmp(const void *, const void *); int lookup(char *); int lgetc(int);