Skip to content

Fix header guard macro typo in todimpl.h coverage stub#489

Open
Sammy-Dabbas wants to merge 1 commit into
nasa:devfrom
Sammy-Dabbas:issue-1039-todimpl-guard
Open

Fix header guard macro typo in todimpl.h coverage stub#489
Sammy-Dabbas wants to merge 1 commit into
nasa:devfrom
Sammy-Dabbas:issue-1039-todimpl-guard

Conversation

@Sammy-Dabbas

Copy link
Copy Markdown

Describe the contribution
Fixes the header guard typo reported in nasa/cFS#1039. In unit-test-coverage/ut-stubs/override_inc/rtems/score/todimpl.h the #ifndef guard read OVERRIDE_TOOIMPL_H (double O) while the #define on the next line reads OVERRIDE_TODIMPL_H. Clang's -Werror=header-guard rejects the mismatch, breaking the native build.

One-line change: align the #ifndef with the existing #define, matching the OVERRIDE_<FILENAME>_H convention used by the sibling override headers in the same directory (threadimpl.h, timestampimpl.h).

Testing performed

  • Verified ifndef/define/filename now agree for this header and its siblings; checked all 58 override headers -- todimpl.h was the only mismatch.
  • Grepped the repo to confirm the misspelled OVERRIDE_TOOIMPL_H is referenced nowhere else.
  • Preprocess and double-include compile check of the header passes locally (GCC; the original clang -Wheader-guard diagnostic should be confirmed by CI).

Expected behavior changes
None at runtime; native builds with clang header-guard checking no longer fail.

Contributor Info
Sammy Dabbas, University of Central Florida

@Sammy-Dabbas Sammy-Dabbas force-pushed the issue-1039-todimpl-guard branch from 096bfae to 990728f Compare July 3, 2026 22:59
@Sammy-Dabbas Sammy-Dabbas changed the base branch from main to dev July 3, 2026 22:59
The #ifndef guard read OVERRIDE_TOOIMPL_H while the #define reads
OVERRIDE_TODIMPL_H, tripping clang's -Werror=header-guard and breaking
the native build. Align the ifndef with the define and the
OVERRIDE_<FILENAME>_H convention used by sibling override headers.

Resolves nasa/cFS#1039.
@Sammy-Dabbas Sammy-Dabbas force-pushed the issue-1039-todimpl-guard branch from 990728f to 57717c9 Compare July 4, 2026 05:12
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