[RTEMS Project] #4783: Fix issues when compiling dtc with Cygwin

RTEMS trac trac at rtems.org
Fri Jan 20 15:02:48 UTC 2023

#4783: Fix issues when compiling dtc with Cygwin
 Reporter:  Ryan Long  |       Owner:  (none)
     Type:  defect     |      Status:  new
 Priority:  normal     |   Milestone:  Indefinite
Component:  tool/rsb   |     Version:  6
 Severity:  normal     |  Resolution:
 Keywords:             |  Blocked By:
 Blocking:             |

Comment (by Joel Sherrill):

 See https://github.com/dgibson/dtc/issues/71 and I just posted. If you
 want to pile on, it would be appreciated. I don't think he sees the
 underlying issue.

 Per https://en.cppreference.com/w/c/string/byte/isxdigit, the argument is
 an integer. GCC and LLVM warn for using a character as an array index and
 this is from the GCC manual.

 Warn if an array subscript has type char. This is a common cause of error,
 as programmers often forget that this type is signed on some machines.
 This warning is enabled by -Wall.

Ticket URL: <http://devel.rtems.org/ticket/4783#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project

More information about the bugs mailing list