Skip to content

Commit 78acd63

Browse files
Explorer09BenBE
authored andcommitted
Comment GCC versions of attribute support in 'configure'
No code changes.
1 parent 8c92150 commit 78acd63

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ CFLAGS="$CFLAGS -Wno-error -Werror=attributes"
197197
AC_COMPILE_IFELSE([
198198
AC_LANG_SOURCE(
199199
[
200+
/* Attribute supported in GCC 4.3 or later */
200201
__attribute__((alloc_size(1))) char* my_alloc(int size) { return 0; }
201202
],[]
202203
)],
@@ -211,6 +212,7 @@ CFLAGS="$CFLAGS -Wno-error -Werror=attributes"
211212
AC_COMPILE_IFELSE([
212213
AC_LANG_SOURCE(
213214
[
215+
/* Attribute supported in GCC 10 or later */
214216
__attribute__((access(read_only, 1, 2))) extern int foo(const char* str, unsigned len);
215217
],[]
216218
)],

0 commit comments

Comments
 (0)