From 78acd63fe8c6ffa8748321c7ab9ae0a541522d5f Mon Sep 17 00:00:00 2001 From: Explorer09 Date: Tue, 13 Aug 2024 04:30:53 +0800 Subject: [PATCH] Comment GCC versions of attribute support in 'configure' No code changes. --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index dfa3e2946..3bbaa7159 100644 --- a/configure.ac +++ b/configure.ac @@ -197,6 +197,7 @@ CFLAGS="$CFLAGS -Wno-error -Werror=attributes" AC_COMPILE_IFELSE([ AC_LANG_SOURCE( [ + /* Attribute supported in GCC 4.3 or later */ __attribute__((alloc_size(1))) char* my_alloc(int size) { return 0; } ],[] )], @@ -211,6 +212,7 @@ CFLAGS="$CFLAGS -Wno-error -Werror=attributes" AC_COMPILE_IFELSE([ AC_LANG_SOURCE( [ + /* Attribute supported in GCC 10 or later */ __attribute__((access(read_only, 1, 2))) extern int foo(const char* str, unsigned len); ],[] )],