Task #119885 - perl-HTML-Parser-3.83-5.fc44/scan-results.err

back to task #119885
download
Error: COMPILER_WARNING (CWE-704):
HTML-Parser-3.83/Parser.xs:30: included_from: Included from here.
HTML-Parser-3.83/util.c: scope_hint: In function ‘decode_entities’
HTML-Parser-3.83/util.c:100:33: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#  100 |                     char *tmp = strchr(PL_hexdigit, *s);
#      |                                 ^~~~~~
#   98|   		s++;
#   99|   		while (s < end) {
#  100|-> 		    char *tmp = strchr(PL_hexdigit, *s);
#  101|   		    if (!tmp)
#  102|   			break;

Error: COMPILER_WARNING (CWE-704):
HTML-Parser-3.83/util.c:100:33: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#   98|   		s++;
#   99|   		while (s < end) {
#  100|-> 		    char *tmp = strchr(PL_hexdigit, *s);
#  101|   		    if (!tmp)
#  102|   			break;

Error: COMPILER_WARNING (CWE-477):
HTML-Parser-3.83/util.c:162:21: warning[-Wdeprecated-declarations]: ‘Perl_uvuni_to_utf8’ is deprecated
#  162 |                     tmp = (char*)uvuni_to_utf8((U8*)buf, num);
#      |                     ^~~
/usr/lib64/perl5/CORE/perl.h:6160: included_from: Included from here.
HTML-Parser-3.83/Parser.xs:11: included_from: Included from here.
/usr/lib64/perl5/CORE/proto.h:6139:1: note: declared here
# 6139 | Perl_uvuni_to_utf8(pTHX_ U8 *d, UV uv)
#      | ^~~~~~~~~~~~~~~~~~
#  160|   		    }
#  161|   
#  162|-> 		    tmp = (char*)uvuni_to_utf8((U8*)buf, num);
#  163|   		    repl = buf;
#  164|   		    repl_len = tmp - buf;

Error: COMPILER_WARNING (CWE-477):
HTML-Parser-3.83/util.c:162:21: warning[-Wdeprecated-declarations]: ‘Perl_uvuni_to_utf8’ is deprecated
#  160|   		    }
#  161|   
#  162|-> 		    tmp = (char*)uvuni_to_utf8((U8*)buf, num);
#  163|   		    repl = buf;
#  164|   		    repl_len = tmp - buf;