Mercurial > dwindows
changeset 2166:f98cecae5402
Revisiting gcc versions, decided to use the official documentation for reference:
First versions documenting support for the features, only goes back to 2.95.
unused: https://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_4.html#SEC90
deprecated: https://gcc.gnu.org/onlinedocs/gcc-3.1.1/gcc/Function-Attributes.html
deprecated with message: https://gcc.gnu.org/onlinedocs/gcc-4.5.4/gcc/Function-Attributes.html
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 01 Oct 2020 18:01:45 +0000 |
parents | 87d574dda8f5 |
children | da33732f182d |
files | dw.h |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dw.h Thu Oct 01 02:34:36 2020 +0000 +++ b/dw.h Thu Oct 01 18:01:45 2020 +0000 @@ -43,7 +43,7 @@ /* Clang or GCC */ #elif __has_extension(attribute_deprecated_with_message) || __GNUC_PREREQ(4, 5) # define DW_DEPRECATED(func, message) func __attribute__((deprecated (message))) -#elif __has_extension(attribute_deprecated) || __GNUC_PREREQ(3, 2) +#elif __has_extension(attribute_deprecated) || __GNUC_PREREQ(3, 1) # define DW_DEPRECATED(func, message) func __attribute__((deprecated)) #endif @@ -53,7 +53,7 @@ #endif /* Support for unused variables in supported compilers */ -#if __has_attribute(unused) || __GNUC_PREREQ(3, 1) +#if __has_attribute(unused) || __GNUC_PREREQ(2, 95) #define DW_UNUSED(x) x __attribute__((__unused__)) #else #define DW_UNUSED(x) x