Skip to content

Fix include guard in output.h#3856

Merged
GuySten merged 1 commit intoopenmc-dev:developfrom
paulromano:fix-unity-build
Mar 5, 2026
Merged

Fix include guard in output.h#3856
GuySten merged 1 commit intoopenmc-dev:developfrom
paulromano:fix-unity-build

Conversation

@paulromano
Copy link
Contributor

Description

I recently tried doing a unity build (cmake -DCMAKE_UNITY_BUILD=ON) only to find that it was broken. Turns out the #endif on the include guard in output.h was in the wrong place so a portion of the header was getting included repeatedly in the same translation unit.

Checklist

  • I have performed a self-review of my own code
  • I have run clang-format (version 18) on any C++ source files (if applicable)
  • I have followed the style guidelines for Python source files (if applicable)
  • I have made corresponding changes to the documentation (if applicable)
  • I have added tests that prove my fix is effective or that my feature works (if applicable)

@paulromano paulromano requested a review from jtramm March 5, 2026 22:07
Copy link
Contributor

@GuySten GuySten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@GuySten GuySten enabled auto-merge (squash) March 5, 2026 22:12
@GuySten GuySten merged commit 6f72619 into openmc-dev:develop Mar 5, 2026
28 of 30 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