Task #90250 - fixed.err

back to task #90250
download
Error: COMPILER_WARNING (CWE-704):
annobin-12.99/annocheck/annocheck.c: scope_hint: In function ‘annocheck_open_separate_debuginfo_file’
annobin-12.99/annocheck/annocheck.c:1099:17: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 1099 |   char * dash = strrchr (link, '-');
#      |                 ^~~~~~~
# 1097|        So check for earlier versions of the debuginfo file in the directory
# 1098|        where it is known that Fedora stores its debug files...  */
# 1099|->   char * dash = strrchr (link, '-');
# 1100|     if (dash)
# 1101|       {

Error: COMPILER_WARNING (CWE-704):
annobin-12.99/annocheck/annocheck.c:1099:17: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 1097|        So check for earlier versions of the debuginfo file in the directory
# 1098|        where it is known that Fedora stores its debug files...  */
# 1099|->   char * dash = strrchr (link, '-');
# 1100|     if (dash)
# 1101|       {

Error: COMPILER_WARNING (CWE-704):
annobin-12.99/annocheck/built-by.c: scope_hint: In function ‘parse_tool’
annobin-12.99/annocheck/built-by.c:347:18: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#  347 |   char * space = strchr (tool, ' ');
#      |                  ^~~~~~
#  345|     * program_return = tool;
#  346|     
#  347|->   char * space = strchr (tool, ' ');
#  348|     if (space)
#  349|       {

Error: COMPILER_WARNING (CWE-704):
annobin-12.99/annocheck/built-by.c:347:18: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#  345|     * program_return = tool;
#  346|     
#  347|->   char * space = strchr (tool, ' ');
#  348|     if (space)
#  349|       {

Error: COMPILER_WARNING (CWE-704):
annobin-12.99/annocheck/hardened.c: scope_hint: In function ‘check_annobin_string_section’
annobin-12.99/annocheck/hardened.c:7268:28: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 7268 |             char * space = strchr (ptr, ' ');
#      |                            ^~~~~~
# 7266|   	  {
# 7267|   	    /* If a name follows a string note, it is the filename for the note.  */
# 7268|-> 	    char * space = strchr (ptr, ' ');
# 7269|   
# 7270|   	    if (space != NULL)

Error: COMPILER_WARNING (CWE-704):
annobin-12.99/annocheck/hardened.c:7268:28: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 7266|   	  {
# 7267|   	    /* If a name follows a string note, it is the filename for the note.  */
# 7268|-> 	    char * space = strchr (ptr, ' ');
# 7269|   
# 7270|   	    if (space != NULL)

Error: COMPILER_WARNING (CWE-704):
annobin-12.99/annocheck/notes.c: scope_hint: In function ‘check_annobin_string_section’
annobin-12.99/annocheck/notes.c:709:32: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#  709 |                 char * space = strchr (ptr, ' ');
#      |                                ^~~~~~
#  707|   		   the filename (and optionally the function name) of
#  708|   		   the non-conforming file.  */
#  709|-> 		char * space = strchr (ptr, ' ');
#  710|   
#  711|   		if (space != NULL)

Error: COMPILER_WARNING (CWE-704):
annobin-12.99/annocheck/notes.c:709:32: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#  707|   		   the filename (and optionally the function name) of
#  708|   		   the non-conforming file.  */
#  709|-> 		char * space = strchr (ptr, ' ');
#  710|   
#  711|   		if (space != NULL)