Skip to content

Fix #50, do not instantiate globals in header file#80

Merged
astrogeco merged 1 commit intonasa:mainfrom
jphickey:fix-50-global-instantiation
Dec 8, 2021
Merged

Fix #50, do not instantiate globals in header file#80
astrogeco merged 1 commit intonasa:mainfrom
jphickey:fix-50-global-instantiation

Conversation

@jphickey
Copy link
Copy Markdown
Contributor

@jphickey jphickey commented Dec 1, 2021

Variables declared in headers should only be "extern", otherwise multiple instances will be defined. This moves the instantiation
of variables to the most relevant C file.

Fixes #50

Variables declared in headers should only be "extern", otherwise
multiple instances will be defined.  This moves the instantation
of variables to the most relevant C file.
@jphickey jphickey added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Dec 1, 2021
@astrogeco astrogeco removed the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Dec 8, 2021
@astrogeco
Copy link
Copy Markdown
Contributor

CCB:2021-12-08 - APPROVED

@astrogeco astrogeco merged commit ba4b9c6 into nasa:main Dec 8, 2021
@jphickey jphickey deleted the fix-50-global-instantiation branch December 9, 2021 16:39
@skliper skliper added this to the Draco milestone Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CF test must not instantiate global variables in a header file

3 participants