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