summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorShawn Routhier <sar@isc.org>2012-02-16 22:07:04 +0000
committerShawn Routhier <sar@isc.org>2012-02-16 22:07:04 +0000
commite3c948003ba79f75f9bd7ae0efb5488664f44475 (patch)
treed178ad770588d2ab0680fd631f4cb43b2dc7677e /includes
parentb36ed9c3f25deeab5732de1852583e3a2831b4d7 (diff)
downloadisc-dhcp-e3c948003ba79f75f9bd7ae0efb5488664f44475.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 8671d489..847f764c 100644
--- a/includes/omapip/omapip_p.h
+++ b/includes/omapip/omapip_p.h
@@ -289,7 +289,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 *, ...)