Skip to content
forked from openjdk/jdk

Commit

Permalink
8294468: Fix char-subscripts warnings in Hotspot
Browse files Browse the repository at this point in the history
Reviewed-by: dholmes, kbarrett
  • Loading branch information
shipilev committed Oct 19, 2022
1 parent 7b1c676 commit ceb5b08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions make/hotspot/lib/CompileJvm.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBJVM, \
DISABLED_WARNINGS_gcc_c1_LIR.cpp := misleading-indentation, \
DISABLED_WARNINGS_gcc_cgroupV1Subsystem_linux.cpp := address, \
DISABLED_WARNINGS_gcc_cgroupV2Subsystem_linux.cpp := address, \
DISABLED_WARNINGS_gcc_dict.cpp := char-subscripts, \
DISABLED_WARNINGS_gcc_interp_masm_x86.cpp := uninitialized, \
DISABLED_WARNINGS_gcc_javaClasses.cpp := misleading-indentation, \
DISABLED_WARNINGS_gcc_loopnode.cpp := sequence-point, \
Expand All @@ -179,7 +178,6 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBJVM, \
DISABLED_WARNINGS_clang := $(DISABLED_WARNINGS_clang), \
DISABLED_WARNINGS_clang_arguments.cpp := missing-field-initializers, \
DISABLED_WARNINGS_clang_codeBuffer.cpp := tautological-undefined-compare, \
DISABLED_WARNINGS_clang_dict.cpp := char-subscripts, \
DISABLED_WARNINGS_clang_directivesParser.cpp := missing-field-initializers, \
DISABLED_WARNINGS_clang_g1ParScanThreadState.cpp := delete-abstract-non-virtual-dtor, \
DISABLED_WARNINGS_clang_g1YoungGCPostEvacuateTasks.cpp := delete-abstract-non-virtual-dtor, \
Expand Down
3 changes: 2 additions & 1 deletion src/hotspot/share/libadt/dict.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ void Dict::print() {
// limited to MAXID characters in length. Experimental evidence on 150K of
// C text shows excellent spreading of values for any size hash table.
int hashstr(const void* t) {
char c, k = 0;
char c;
int k = 0;
int32_t sum = 0;
const char* s = (const char*)t;

Expand Down

0 comments on commit ceb5b08

Please sign in to comment.