Skip to content

Conversation

@daviesrob
Copy link
Member

The C standard says that for an array to not be a variable length type, it's size must be a constant integer expression. A const variable does not satisfy the definition of a constant integer expression, but compliers may accept them as an extension. We used to get away with this, but the compiler shipped with MacOS Tahoe is more strict and prints a warning. Fix by changing the const variable to a macro.

See https://stackoverflow.com/questions/72716896/ for more details.

The C standard says that for an array to not be a variable length
type, it's size must be a constant integer expression.  A const
variable does not satisfy the definition of a constant integer
expression, but compliers may accept them as an extension.  We
used to get away with this, but the compiler shipped with MacOS
Tahoe is more strict and prints a warning.  Fix by changing the
const variable to a macro.

See https://stackoverflow.com/questions/72716896/ for more details.
@whitwham whitwham merged commit ef01dee into samtools:develop Dec 11, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants