[RTEMS Project] #3118: fdt-shell uses char as index, gets warnings

RTEMS trac trac at rtems.org
Sun Aug 27 16:07:24 UTC 2017


#3118: fdt-shell uses char as index, gets warnings
---------------------------+-----------------------------
 Reporter:  Joel Sherrill  |      Owner:  joel.sherrill@…
     Type:  defect         |     Status:  new
 Priority:  normal         |  Milestone:
Component:  misc           |    Version:  4.12
 Severity:  normal         |   Keywords:  warning
---------------------------+-----------------------------
 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]

--
Ticket URL: <http://devel.rtems.org/ticket/3118>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list