Task #91330 - fixed.err

back to task #91330
download
Error: COMPILER_WARNING (CWE-704):
libbytesize-2.11/src/bs_size.c: scope_hint: In function 'replace_str_with_str'
libbytesize-2.11/src/bs_size.c:184:9: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  184 |     pos = strstr (str, orig);
#      |         ^
#  182|       char *dest = NULL;
#  183|   
#  184|->     pos = strstr (str, orig);
#  185|       if (!pos)
#  186|           /* nothing to do, just return a copy */

Error: COMPILER_WARNING (CWE-704):
libbytesize-2.11/src/bs_size.c:184:9: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  182|       char *dest = NULL;
#  183|   
#  184|->     pos = strstr (str, orig);
#  185|       if (!pos)
#  186|           /* nothing to do, just return a copy */