Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(fmt.h): fix build break from recent fmt change #4227

Merged
merged 1 commit into from
Apr 13, 2024

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Apr 13, 2024

We disable fmt execptions and force it to do one of our ASSERT's instead. But fmt in their main branch recently added [[noreturn]] annotations in a way that cause this to be compiler errors for our overrides. Needed an extra std::terminate() call to guarantee the noreturn promise.

We disable fmt execptions and force it to do one of our ASSERT's
instead.  But fmt in their main branch recently added `[[noreturn]]`
annotations in a way that cause this to be compiler errors for our
overrides.  Needed an extra std::terminate() call to guarantee the
noreturn promise.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz
Copy link
Collaborator Author

lgritz commented Apr 13, 2024

Pre-emptively merging because this demonstrably fixes our broken CI. If anybody looks at this later and thinks it's a bad idea, please speak up and we'll find another solution.

@lgritz lgritz merged commit c76824b into AcademySoftwareFoundation:master Apr 13, 2024
24 checks passed
@lgritz lgritz deleted the lg-fmt branch April 13, 2024 20:47
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Apr 15, 2024
…undation#4227)

We disable fmt execptions and force it to do one of our ASSERT's
instead. But fmt in their main branch recently added `[[noreturn]]`
annotations in a way that cause this to be compiler errors for our
overrides. Needed an extra std::terminate() call to guarantee the
noreturn promise.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Apr 15, 2024
…undation#4227)

We disable fmt execptions and force it to do one of our ASSERT's
instead. But fmt in their main branch recently added `[[noreturn]]`
annotations in a way that cause this to be compiler errors for our
overrides. Needed an extra std::terminate() call to guarantee the
noreturn promise.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Apr 15, 2024
…undation#4227)

We disable fmt execptions and force it to do one of our ASSERT's
instead. But fmt in their main branch recently added `[[noreturn]]`
annotations in a way that cause this to be compiler errors for our
overrides. Needed an extra std::terminate() call to guarantee the
noreturn promise.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
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.

None yet

1 participant