summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorShawn Routhier <sar@isc.org>2012-02-16 22:07:31 +0000
committerShawn Routhier <sar@isc.org>2012-02-16 22:07:31 +0000
commitae21a68f1417bdaf79a49652bb8cbf430c89641c (patch)
tree33098f91fbb0c21b1c08553f3ea540fef47941b6 /includes
parent874876e0c77c28cfa4ab68e58d77a799f7223846 (diff)
downloadisc-dhcp-ae21a68f1417bdaf79a49652bb8cbf430c89641c.tar.gz
Add a compile time check for the presence of the noreturn attribute
and use it for log_fatal if it's available. This will help code checking programs to eliminate false positives. [ISC-Bugs 27539]
Diffstat (limited to 'includes')
-rw-r--r--includes/omapip/omapip_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/omapip/omapip_p.h b/includes/omapip/omapip_p.h
index 92acd91b..1cf9e53c 100644
--- a/includes/omapip/omapip_p.h
+++ b/includes/omapip/omapip_p.h
@@ -282,7 +282,7 @@ extern int log_perror;
extern void (*log_cleanup) (void);
void log_fatal (const char *, ...)
- __attribute__((__format__(__printf__,1,2)));
+ __attribute__((__format__(__printf__,1,2))) ISC_DHCP_NORETURN;
int log_error (const char *, ...)
__attribute__((__format__(__printf__,1,2)));
int log_info (const char *, ...)