mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-16 00:30:06 +02:00
23 lines
550 B
Plaintext
23 lines
550 B
Plaintext
From da46f5dd038f637854a72276e90b081d1456189b Mon Sep 17 00:00:00 2001
|
|
From: fbrosson <fbrosson@localhost>
|
|
Date: Wed, 15 Aug 2018 14:31:29 +0000
|
|
Subject: Do not use __attribute__((__unused__)) with gcc2.
|
|
|
|
|
|
diff --git a/lib/internal.h b/lib/internal.h
|
|
index e33fdcb..b52dbea 100644
|
|
--- a/lib/internal.h
|
|
+++ b/lib/internal.h
|
|
@@ -102,7 +102,7 @@
|
|
#endif
|
|
|
|
#ifndef UNUSED_P
|
|
-# ifdef __GNUC__
|
|
+# if defined(__GNUC__) && __GNUC__ >= 3
|
|
# define UNUSED_P(p) UNUSED_ ## p __attribute__((__unused__))
|
|
# else
|
|
# define UNUSED_P(p) UNUSED_ ## p
|
|
--
|
|
2.18.0
|
|
|