Skip to content

Commit

Permalink
Comment GCC versions of attribute support in 'configure'
Browse files Browse the repository at this point in the history
No code changes.
  • Loading branch information
Explorer09 authored and BenBE committed Aug 13, 2024
1 parent 8c92150 commit 78acd63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
],[]
)],
Expand All @@ -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);
],[]
)],
Expand Down

0 comments on commit 78acd63

Please sign in to comment.