Browse Source

Add gcc printf format attributes to yyerror() in parse.y files.

No yyerror() calls needed to be changed.
ok bluhm@
OPENBSD_5_7
doug 9 years ago
parent
commit
146b86bde3
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/usr.sbin/ntpd/parse.y

+ 4
- 2
src/usr.sbin/ntpd/parse.y View File

@ -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 <henning@openbsd.org>
@ -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);


Loading…
Cancel
Save