#3118 assigned defect

fdt-shell uses char as index, gets warnings

Reported by: Joel Sherrill Owned by: Chris Johns
Priority: normal Milestone:
Component: unspecified Version: 5
Severity: normal Keywords: warning
Cc: Blocked By:
Blocking:

Description

The comments in ctype.h indicate that the argument to methods like isdigit(0 should be an integer containing a char. These warnings indicate that a char is directly being passed. This warning is only showing up on the or1k and epiphany but both have the current newlib.

warnings/warnings-4.12-master-20170827a/warnings-all-4.12-master-20170827a.txt:log/or1k-generic_or1k.log:../../../../../../rtems/c/src/../../cpukit/libmisc/rtems-fdt/rtems-fdt-shell.c:341:3: warning: array subscript has type 'char' [-Wchar-subscripts]
warnings/warnings-4.12-master-20170827a/warnings-all-4.12-master-20170827a.txt:log/or1k-generic_or1k.log:../../../../../../rtems/c/src/../../cpukit/libmisc/rtems-fdt/rtems-fdt-shell.c:383:3: warning: array subscript has type 'char' [-Wchar-subscripts]
warnings/warnings-4.12-master-20170827a/warnings-all-4.12-master-20170827a.txt:log/or1k-generic_or1k.log:../../../../../../rtems/c/src/../../cpukit/libmisc/rtems-fdt/rtems-fdt-shell.c:429:3: warning: array subscript has type 'char' [-Wchar-subscripts]
warnings/warnings-4.12-master-20170827a/warnings-all-4.12-master-20170827a.txt:log/or1k-generic_or1k.log:../../../../../../rtems/c/src/../../cpukit/libmisc/rtems-fdt/rtems-fdt-shell.c:476:3: warning: array subscript has type 'char' [-Wchar-subscripts]

Change History (2)

comment:1 Changed on 08/27/17 at 16:07:38 by Joel Sherrill

Owner: changed from joel.sherrill@… to Chris Johns
Status: newassigned

comment:2 Changed on 10/10/17 at 06:35:44 by Sebastian Huber

Component: miscunspecified
Note: See TracTickets for help on using tickets.