mirror of
https://github.com/openbsd/xenocara.git
synced 2025-12-13 04:39:07 +00:00
Do not use 'deprecated' attribute on gcc < 3.1.
It causes lots of spurious warnings in build logs. suggestion to make the test gcc >= 3.1 millert@, ok todd@, miod@
This commit is contained in:
@@ -251,7 +251,7 @@ extern RESTYPE TypeMask;
|
||||
* Please use the noted replacements instead.
|
||||
*/
|
||||
|
||||
#ifdef __GNUC__
|
||||
#if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
|
||||
#define X_DEPRECATED __attribute__((deprecated))
|
||||
#else
|
||||
#define X_DEPRECATED
|
||||
|
||||
Reference in New Issue
Block a user