Should we be worrying about these warnings?

execute_cmd.c: In function 'init_notfound_str':
execute_cmd.c:5894:18: warning: assignment discards 'const' qualifier from 
pointer target type [-Wdiscarded-qualifiers]
 5894 |     notfound_str = _("command not found");
      |                  ^
/usr/local/src/chet/src/bash/src/parse.y: In function 'report_syntax_error':
/usr/local/src/chet/src/bash/src/parse.y:6905:8: warning: assignment discards 
'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
In function 'xrealloc',
    inlined from 'shell_getc.part.0' at 
/usr/local/src/chet/src/bash/src/parse.y:2590:24:
xmalloc.c:123:20: warning: argument 2 value '18446744073709551615' exceeds 
maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
  123 |   temp = pointer ? realloc (pointer, bytes) : malloc (bytes);
      |                    ^
/usr/include/stdlib.h: In function 'shell_getc.part.0':
/usr/include/stdlib.h:42:7: note: in a call to allocation function 'realloc' 
declared here
   42 | void *realloc (void *, size_t);
      |       ^
In function 'xrealloc',
    inlined from 'shell_getc.part.0' at 
/usr/local/src/chet/src/bash/src/parse.y:2590:24:
xmalloc.c:123:47: warning: argument 1 value '18446744073709551615' exceeds 
maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
  123 |   temp = pointer ? realloc (pointer, bytes) : malloc (bytes);
      |                                               ^
/usr/include/stdlib.h: In function 'shell_getc.part.0':
/usr/include/stdlib.h:40:7: note: in a call to allocation function 'malloc' 
declared here
   40 | void *malloc (size_t);
      |       ^

Reply via email to