Task #91504 - fixed.err

back to task #91504
download
Error: COMPILER_WARNING (CWE-704):
libtpms-0.10.1/src/tpm_library.c: scope_hint: In function 'TPMLIB_GetPlaintext'
libtpms-0.10.1/src/tpm_library.c:441:11: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  441 |     start = strstr(stream, starttag);
#      |           ^
cc1: note: unrecognized command-line option '-Wno-self-assign' may have been intended to silence earlier diagnostics
#  439|       unsigned char *plaintext = NULL;
#  440|   
#  441|->     start = strstr(stream, starttag);
#  442|       if (start) {
#  443|           start += strlen(starttag);

Error: COMPILER_WARNING (CWE-704):
libtpms-0.10.1/src/tpm_library.c:441:11: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  439|       unsigned char *plaintext = NULL;
#  440|   
#  441|->     start = strstr(stream, starttag);
#  442|       if (start) {
#  443|           start += strlen(starttag);