Skip to content

Fix a compilation error in TPMLIB_GetPlaintext#545

Merged
stefanberger merged 1 commit intomasterfrom
stefanberger/fix_compilation_error
Jan 2, 2026
Merged

Fix a compilation error in TPMLIB_GetPlaintext#545
stefanberger merged 1 commit intomasterfrom
stefanberger/fix_compilation_error

Conversation

@stefanberger
Copy link
Owner

Fix a compilation error that newer gcc versions may complain about:

tpm_library.c: In function 'TPMLIB_GetPlaintext':
tpm_library.c:441:11: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
441 | start = strstr(stream, starttag);
| ^
At top level:
cc1: note: unrecognized command-line option '-Wno-self-assign' may have been intended to silence earlier diagnostics
cc1: all warnings being treated as errors

Fix a compilation error that newer gcc versions may complain about:

tpm_library.c: In function 'TPMLIB_GetPlaintext':
tpm_library.c:441:11: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
  441 |     start = strstr(stream, starttag);
      |           ^
At top level:
cc1: note: unrecognized command-line option '-Wno-self-assign' may have been intended to silence earlier diagnostics
cc1: all warnings being treated as errors

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
@stefanberger stefanberger merged commit fc8820c into master Jan 2, 2026
6 of 7 checks passed
@stefanberger stefanberger deleted the stefanberger/fix_compilation_error branch January 2, 2026 17:00
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.

1 participant