summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-07-23 11:35:06 -0400
committerAdam Jackson <ajax@redhat.com>2008-07-23 11:35:06 -0400
commit2e3c43d306616f8accdeaffec9c108ba88324805 (patch)
tree1082328a705a864b58d68559f07f7c2ed8852dfb /include
parent0c1c9d75089aac0cf673820db83801d3cab5bfc7 (diff)
Assume __GNUC__ >= 3.
gcc 3.0 was seven years ago. Get with the times.
Diffstat (limited to 'include')
-rw-r--r--include/os.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/os.h b/include/os.h
index eff9b5297..0a23a731a 100644
--- a/include/os.h
+++ b/include/os.h
@@ -476,8 +476,7 @@ typedef enum {
} MessageType;
/* XXX Need to check which GCC versions have the format(printf) attribute. */
-#if defined(__GNUC__) && \
- ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ > 4)))
+#if defined(__GNUC__) && (__GNUC__ > 2)
#define _printf_attribute(a,b) __attribute((format(__printf__,a,b)))
#else
#define _printf_attribute(a,b) /**/
@@ -498,8 +497,7 @@ extern void FreeAuditTimer(void);
extern void AuditF(const char *f, ...) _printf_attribute(1,2);
extern void VAuditF(const char *f, va_list args);
extern void FatalError(const char *f, ...) _printf_attribute(1,2)
-#if defined(__GNUC__) && \
- ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ > 4)))
+#if defined(__GNUC__) && (__GNUC__ > 2)
__attribute((noreturn))
#endif
;