Skip to content

ENH: Give the cifti tools' gopt internal linkage - #118

Open
hjmjohnson wants to merge 1 commit into
masterfrom
pr/fix-missing-variable-declarations
Open

hjmjohnson wants to merge 1 commit into
masterfrom
pr/fix-missing-variable-declarations

Conversation

@hjmjohnson

Copy link
Copy Markdown
Member

Re-submission of #36, reverted from master on 2026-09-24 so it can be
reviewed before merging. Content is unchanged from the original.

Base: master. Independent: nothing has to land before it.

Commits
  • ENH: Give the cifti tools' gopt internal linkage

Ordering for all the re-submitted work is tracked in #84.

afni_xml_tool.c and cifti_tool.c each define a file-scope `opts_t gopt`
with external linkage, so the two share a symbol name and neither
declares it in a header.  Each is used only inside its own translation
unit, always by address.

Both files build executables rather than libraries, so `static` removes
nothing from any shared library's exported symbols.

Clears both -Wmissing-variable-declarations warnings.

(cherry picked from commit a2d3b5c)
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.

3 participants