Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/tmux/dist sprinkle __attribute__((__format__(pr...



details:   https://anonhg.NetBSD.org/src/rev/2a77e1a48aa2
branches:  trunk
changeset: 347537:2a77e1a48aa2
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Thu Sep 01 16:30:11 2016 +0000

description:
sprinkle __attribute__((__format__(printf..

diffstat:

 external/bsd/tmux/dist/xmalloc.h |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (18 lines):

diff -r 9e9124ed93a4 -r 2a77e1a48aa2 external/bsd/tmux/dist/xmalloc.h
--- a/external/bsd/tmux/dist/xmalloc.h  Thu Sep 01 13:23:44 2016 +0000
+++ b/external/bsd/tmux/dist/xmalloc.h  Thu Sep 01 16:30:11 2016 +0000
@@ -32,12 +32,14 @@
                __attribute__((__format__ (printf, 2, 3)))
                __attribute__((__nonnull__ (2)));
 int     xvasprintf(char **, const char *, va_list)
+               __attribute__((__format__ (printf, 2, 0)))
                __attribute__((__nonnull__ (2)));
 int     xsnprintf(char *, size_t, const char *, ...)
                __attribute__((__format__ (printf, 3, 4)))
                __attribute__((__nonnull__ (3)))
                __attribute__((__bounded__ (__string__, 1, 2)));
 int     xvsnprintf(char *, size_t, const char *, va_list)
+               __attribute__((__format__ (printf, 3, 0)))
                __attribute__((__nonnull__ (3)))
                __attribute__((__bounded__ (__string__, 1, 2)));
 



Home | Main Index | Thread Index | Old Index