aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2014-12-06 00:01:19 +0000
committerXin LI <delphij@FreeBSD.org>2014-12-06 00:01:19 +0000
commit3d7f2224b8cdeb33cf93bcc84406a02773acb123 (patch)
treec31b0bf420610e8bff99704c71e53a64f0fefe32 /tools
parentca0bb972db757f24729134b04099368cc2565f60 (diff)
downloadsrc-3d7f2224b8cdeb33cf93bcc84406a02773acb123.tar.gz
src-3d7f2224b8cdeb33cf93bcc84406a02773acb123.zip
3363 Mark non-returning functions in ctftools
Reviewed by: Richard Lowe <richlowe@richlowe.net> Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com> Approved by: Albert Lee <trisk@omniti.com> Author: Erik Cederstrand <erik@cederstrand.dk> illumos/illumos-gate@a6bde1a23b60f140c7ed78df979c2e22b1ed9b2c
Notes
Notes: svn path=/vendor/illumos/dist/; revision=275536
Diffstat (limited to 'tools')
-rw-r--r--tools/ctf/cvt/ctftools.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/ctf/cvt/ctftools.h b/tools/ctf/cvt/ctftools.h
index 991f3bc9219b..a9519dc06ca9 100644
--- a/tools/ctf/cvt/ctftools.h
+++ b/tools/ctf/cvt/ctftools.h
@@ -26,8 +26,6 @@
#ifndef _CTFTOOLS_H
#define _CTFTOOLS_H
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* Functions and data structures used in the manipulation of stabs and CTF data
*/
@@ -39,6 +37,8 @@
#include <gelf.h>
#include <pthread.h>
+#include <sys/ccompile.h>
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -434,8 +434,8 @@ int streq(const char *, const char *);
int findelfsecidx(Elf *, const char *, const char *);
size_t elf_ptrsz(Elf *);
char *mktmpname(const char *, const char *);
-void terminate(char *, ...);
-void aborterr(char *, ...);
+void terminate(char *, ...) __NORETURN;
+void aborterr(char *, ...) __NORETURN;
void set_terminate_cleanup(void (*)());
void elfterminate(const char *, const char *, ...);
void warning(char *, ...);