Skip to content

fix: miscellaneous minor warnings in the test build#168

Merged
embray merged 1 commit intoasdf-format:mainfrom
embray:build-warnings
Mar 30, 2026
Merged

fix: miscellaneous minor warnings in the test build#168
embray merged 1 commit intoasdf-format:mainfrom
embray:build-warnings

Conversation

@embray
Copy link
Copy Markdown
Collaborator

@embray embray commented Mar 30, 2026

The -std=gnu11 change stems from the error system refactoring, where we do rely on variadic macros that may take zero arguments. This uses the ##VA_ARGS gnu extension which was implict in the main library build but warned about in the tests due to the explicit -std=c11 flag.

Since ##VA_ARGS is supported in GCC and clang I'm relenting to use it for now; could move to C23 which has VA_OPT but I'd like to stick mainly to an older C standard for now but not shy away from a few extensions.

@embray embray changed the title fix: miscellaneous minor warnigns in the test build fix: miscellaneous minor warnings in the test build Mar 30, 2026
@embray embray force-pushed the build-warnings branch 2 times, most recently from ac0b488 to c6b59d9 Compare March 30, 2026 09:49
The -std=gnu11 change stems from the error system refactoring, where we
do rely on variadic macros that may take zero arguments.  This uses
the ##__VA_ARGS__ gnu extension which was implict in the main library
build but warned about in the tests due to the explicit -std=c11 flag.

Since ##__VA_ARGS__ is supported in GCC and clang I'm relenting to use
it for now; could move to C23 which has __VA_OPT__ but I'd like to stick
mainly to an older C standard for now but not shy away from a few
extensions.
@embray embray merged commit 0ef4a8d into asdf-format:main Mar 30, 2026
12 checks passed
@embray embray deleted the build-warnings branch March 30, 2026 09:56
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.

1 participant