Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize variable to quiet compiler finding #2572

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

bluerise
Copy link

The compiler believes that the variable secured_context might be used in the switch-case LIBSPDM_DATA_SESSION_SEQUENCE_NUMBER_REQ_DIR without being initialized. This though does not happen because in that case need_session_info_for_data() will return true and secured_context will be set.

@steven-bellock
Copy link
Contributor

Please specify which compiler(s) complain in the commit description.

@jyao1
Copy link
Member

jyao1 commented Feb 18, 2024

please fix CI failure

GCC 12.2.0 believes that the variable secured_context might be used in
the switch-case LIBSPDM_DATA_SESSION_SEQUENCE_NUMBER_REQ_DIR without
being initialized.  This though does not happen because in that case
need_session_info_for_data() will return true and secured_context will
be set.

Change-Id: I1f661115b9a9c27eeddc4238c1887fdd0566b533
Signed-off-by: Patrick Wildt <[email protected]>
@bluerise
Copy link
Author

Please specify which compiler(s) complain in the commit description.

Done, thanks!

please fix CI failure

That was a Copyright year update issue which was now fixed through a different commit.

@steven-bellock steven-bellock merged commit 0ef728d into DMTF:main Feb 20, 2024
95 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.

3 participants