Mercurial > ~dholland > hg > tradcpp > index.cgi
changeset 43:f185d1ac4db4
__dead + __printflike for clang
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Sun, 31 Mar 2013 04:17:51 +0200 |
parents | ef8bedab8a4b |
children | 57e0c7a50b2d |
files | main.c utils.h |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/main.c Sat Mar 30 21:50:37 2013 -0400 +++ b/main.c Sun Mar 31 04:17:51 2013 +0200 @@ -504,7 +504,7 @@ //////////////////////////////////////////////////////////// // complex modes -static +__dead static void commandline_iremap(const struct place *p, char *str) { @@ -865,7 +865,7 @@ return false; } -static +__dead static void usage(void) {
--- a/utils.h Sat Mar 30 21:50:37 2013 -0400 +++ b/utils.h Sun Mar 31 04:17:51 2013 +0200 @@ -53,10 +53,10 @@ bool is_identifier(const char *str); /* in place.c */ -void complain(const struct place *, const char *fmt, ...); +void complain(const struct place *, const char *fmt, ...) __printflike(2, 3); void complain_fail(void); bool complain_failed(void); /* in main.c */ void freestringlater(char *s); -void die(void); +__dead void die(void);