Skip to content

Fix build error in zrotg.c with FUNCTION_PROFILE=1 from Makefile.rule - #5944

Open
lujiaweics wants to merge 1 commit into
OpenMathLib:developfrom
lujiaweics:fix/zrotg-missing-profile-end
Open

Fix build error in zrotg.c with FUNCTION_PROFILE=1 from Makefile.rule#5944
lujiaweics wants to merge 1 commit into
OpenMathLib:developfrom
lujiaweics:fix/zrotg-missing-profile-end

Conversation

@lujiaweics

Copy link
Copy Markdown
Contributor

When FUNCTION_PROFILE is enabled in Makefile.rule, zrotg.c fails to compile because FUNCTION_PROFILE_START introduces an unmatched opening brace. This PR inserts FUNCTION_PROFILE_END and IDEBUG_END at the single exit point behind a do-while(0) wrapper.

Add missing FUNCTION_PROFILE_END / IDEBUG_END after all return
paths to properly close the brace opened by FUNCTION_PROFILE_START.
Use a do { … } while(0) wrapper so the macros stay outside any
nested block.
@martin-frbg martin-frbg added this to the 0.3.35 milestone Jul 29, 2026
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