Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/tools/ctf/cvt More printflike and d...
details: https://anonhg.NetBSD.org/src/rev/dab6f639aa73
branches: trunk
changeset: 343444:dab6f639aa73
user: roy <roy%NetBSD.org@localhost>
date: Thu Feb 04 17:40:55 2016 +0000
description:
More printflike and dead fixes.
diffstat:
external/cddl/osnet/dist/tools/ctf/cvt/ctf.c | 2 +-
external/cddl/osnet/dist/tools/ctf/cvt/ctfconvert.c | 2 +-
external/cddl/osnet/dist/tools/ctf/cvt/ctftools.h | 6 +++---
external/cddl/osnet/dist/tools/ctf/cvt/st_parse.c | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r c66f80c81584 -r dab6f639aa73 external/cddl/osnet/dist/tools/ctf/cvt/ctf.c
--- a/external/cddl/osnet/dist/tools/ctf/cvt/ctf.c Thu Feb 04 17:27:32 2016 +0000
+++ b/external/cddl/osnet/dist/tools/ctf/cvt/ctf.c Thu Feb 04 17:40:55 2016 +0000
@@ -81,7 +81,7 @@
static int target_requires_swap;
/*PRINTFLIKE1*/
-static void __printflike(1, 2)
+static void __printflike(1, 2) __dead
parseterminate(const char *fmt, ...)
{
static char msgbuf[1024]; /* sigh */
diff -r c66f80c81584 -r dab6f639aa73 external/cddl/osnet/dist/tools/ctf/cvt/ctfconvert.c
--- a/external/cddl/osnet/dist/tools/ctf/cvt/ctfconvert.c Thu Feb 04 17:27:32 2016 +0000
+++ b/external/cddl/osnet/dist/tools/ctf/cvt/ctfconvert.c Thu Feb 04 17:40:55 2016 +0000
@@ -76,7 +76,7 @@
#endif
}
-static void
+static void __dead
handle_sig(int sig)
{
terminate("Caught signal %d - exiting\n", sig);
diff -r c66f80c81584 -r dab6f639aa73 external/cddl/osnet/dist/tools/ctf/cvt/ctftools.h
--- a/external/cddl/osnet/dist/tools/ctf/cvt/ctftools.h Thu Feb 04 17:27:32 2016 +0000
+++ b/external/cddl/osnet/dist/tools/ctf/cvt/ctftools.h Thu Feb 04 17:40:55 2016 +0000
@@ -440,11 +440,11 @@
size_t elf_ptrsz(Elf *);
char *mktmpname(const char *, const char *);
void terminate(const char *, ...) __printflike(1, 2) __dead;
-void aborterr(const char *, ...) __printflike(1, 2);
+void aborterr(const char *, ...) __printflike(1, 2) __dead;
void set_terminate_cleanup(void (*)(void));
-void elfterminate(const char *, const char *, ...) __printflike(2, 3);
+void elfterminate(const char *, const char *, ...) __printflike(2, 3) __dead;
void warning(const char *, ...) __printflike(1, 2);
-void vadebug(int, const char *, va_list);
+void vadebug(int, const char *, va_list) __printflike(2, 0);
void debug(int, const char *, ...) __printflike(2, 3);
diff -r c66f80c81584 -r dab6f639aa73 external/cddl/osnet/dist/tools/ctf/cvt/st_parse.c
--- a/external/cddl/osnet/dist/tools/ctf/cvt/st_parse.c Thu Feb 04 17:27:32 2016 +0000
+++ b/external/cddl/osnet/dist/tools/ctf/cvt/st_parse.c Thu Feb 04 17:40:55 2016 +0000
@@ -1125,7 +1125,7 @@
return (HASH(sum));
}
-static void
+static void __dead
reset(void)
{
longjmp(resetbuf, 1);
Home |
Main Index |
Thread Index |
Old Index