diff options
author | Doug Hogan <doug@cvs.openbsd.org> | 2014-11-14 03:20:38 +0000 |
---|---|---|
committer | Doug Hogan <doug@cvs.openbsd.org> | 2014-11-14 03:20:38 +0000 |
commit | 5b2bd120efc36e43885fddaf159431fe0dfee19d (patch) | |
tree | 801957c533d7a072839c2c32bfc74d186c0bd03b /bin | |
parent | c441472a32bbc7572a4ff7cb9eae3c36bef52e46 (diff) |
Add gcc printf format attributes to yyerror() in parse.y files.
No yyerror() calls needed to be changed.
ok bluhm@
Diffstat (limited to 'bin')
-rw-r--r-- | bin/chio/parse.y | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/chio/parse.y b/bin/chio/parse.y index 434e182aab0..1c1e2e7bb5f 100644 --- a/bin/chio/parse.y +++ b/bin/chio/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.17 2014/05/18 16:36:41 espie Exp $ */ +/* $OpenBSD: parse.y,v 1.18 2014/11/14 03:20:36 doug Exp $ */ /* * Copyright (c) 2006 Bob Beck <beck@openbsd.org> @@ -45,7 +45,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); |