Skip to content

Commit

Permalink
add comment about Apple clang warning
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@87673 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
ripley committed Feb 2, 2025
1 parent 76e0146 commit f444e1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -2357,6 +2357,7 @@ long double *R_allocLD(size_t nelem)
size_t ld_align = alignof(long double);
#elif __GNUC__
// This is C99, but do not rely on it.
// Apple clang warns this is gnu extension.
size_t ld_align = offsetof(struct { char __a; long double __b; }, __b);
#else
size_t ld_align = 0x0F; // value of x86_64, known others are 4 or 8
Expand Down

0 comments on commit f444e1a

Please sign in to comment.