Task #132029 - fixed.err

back to task #132029
download
Error: COMPILER_WARNING (CWE-704):
mpg123-1.32.10/src/httpget.c: scope_hint: In function ‘debunk_mime’
mpg123-1.32.10/src/httpget.c:123:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  123 |         aux = strchr(mime, ';');
#      |             ^
#  121|   	char *aux;
#  122|   	/* Watch out for such: "audio/x-mpegurl; charset=utf-8" */
#  123|-> 	aux = strchr(mime, ';');
#  124|   	if(aux != NULL)
#  125|   	{

Error: COMPILER_WARNING (CWE-704):
mpg123-1.32.10/src/httpget.c:123:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  121|   	char *aux;
#  122|   	/* Watch out for such: "audio/x-mpegurl; charset=utf-8" */
#  123|-> 	aux = strchr(mime, ';');
#  124|   	if(aux != NULL)
#  125|   	{

Error: COMPILER_WARNING:
mpg123-1.32.10/src/libmpg123/layer2.c: scope_hint: In function 'INT123_init_layer12_table_mmx'
mpg123-1.32.10/src/libmpg123/layer2.c:54:15: warning[-Wunused-but-set-variable=]: variable 'j' set but not used
#   54 |         int i,j;
#      |               ^
#   52|   real* INT123_init_layer12_table_mmx(mpg123_handle *fr, real *table, int m)
#   53|   {
#   54|-> 	int i,j;
#   55|   	if(!fr->p.down_sample) 
#   56|   	{

Error: GCC_ANALYZER_WARNING (CWE-476):
mpg123-1.32.10/src/streamdump.c:75:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#   73|   	if(nh)
#   74|   		return;
#   75|-> 	int *fdp = nh->parts;
#   76|   #ifdef WANT_WIN32_SOCKETS
#   77|   	if(*fdp != SOCKET_ERROR)

Error: COMPILER_WARNING (CWE-704):
mpg123-1.32.10/src/sysutil.c: scope_hint: In function ‘dir_length’
mpg123-1.32.10/src/sysutil.c:36:27: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#   36 |         char * slashpos = strrchr(path, '/');
#      |                           ^~~~~~~
#   34|   size_t dir_length(const char *path)
#   35|   {
#   36|-> 	char * slashpos = strrchr(path, '/');
#   37|   	return (slashpos ? slashpos-path : 0);
#   38|   }

Error: COMPILER_WARNING (CWE-704):
mpg123-1.32.10/src/sysutil.c:36:27: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#   34|   size_t dir_length(const char *path)
#   35|   {
#   36|-> 	char * slashpos = strrchr(path, '/');
#   37|   	return (slashpos ? slashpos-path : 0);
#   38|   }

Error: COMPILER_WARNING (CWE-704):
mpg123-1.32.10/src/sysutil.c: scope_hint: In function ‘split_dir_file’
mpg123-1.32.10/src/sysutil.c:56:23: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   56 |         if ((slashpos = strrchr(path, '/'))) {
#      |                       ^
#   54|   	char *slashpos;
#   55|   
#   56|-> 	if ((slashpos = strrchr(path, '/'))) {
#   57|   		*fname = slashpos + 1;
#   58|   		*dname = INT123_compat_strdup(path); /* , 1 + slashpos - path); */

Error: COMPILER_WARNING (CWE-704):
mpg123-1.32.10/src/sysutil.c:56:23: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   54|   	char *slashpos;
#   55|   
#   56|-> 	if ((slashpos = strrchr(path, '/'))) {
#   57|   		*fname = slashpos + 1;
#   58|   		*dname = INT123_compat_strdup(path); /* , 1 + slashpos - path); */