dict.cc: char used as array subscript

Roland Illig roland.illig at gmx.de
Sat Mar 21 11:12:54 UTC 2020


When I compile OpenJDK 11 with GCC, I get this warning in dict.cc:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94247

Could you perhaps change k from char to any other integer type, to make
this warning go away? GCC generates the same code anyway, so using int
or unsigned int would be nicer to the human reader as well.

Best,
Roland


More information about the compiler-dev mailing list