Skip to content

Fix build on newer toolchains where ATOMIC_VAR_INIT was removed#616

Open
christhomas wants to merge 1 commit into
hd-zero:mainfrom
christhomas:fix/atomic-var-init
Open

Fix build on newer toolchains where ATOMIC_VAR_INIT was removed#616
christhomas wants to merge 1 commit into
hd-zero:mainfrom
christhomas:fix/atomic-var-init

Conversation

@christhomas

Copy link
Copy Markdown

ATOMIC_VAR_INIT was deprecated in C17 and removed in C23, so newer GCC/clang
now error on it and lib/log fails to build.

Initialise the atomic directly instead — equivalent behaviour, and portable across
both old and new toolchains.

Small and self-contained; no functional change.

ATOMIC_VAR_INIT was deprecated and removed in newer C standards / GCC,
breaking the build. Initialise the atomic directly instead.
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