# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1601575305 0 # Node ID f98cecae540262e428899a3af3999ce7833911b9 # Parent 87d574dda8f5819860a14b4c092ebd28aad7740b 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 diff -r 87d574dda8f5 -r f98cecae5402 dw.h --- 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