Skip to content

Commit 7952c06

Browse files
committedOct 8, 2020
8254166: Zero: return-type warning in zeroInterpreter_zero.cpp
Reviewed-by: sgehwolf
1 parent 894ec76 commit 7952c06

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/hotspot/cpu/zero/zeroInterpreter_zero.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ intptr_t narrow(BasicType type, intptr_t result) {
138138
case T_DOUBLE:
139139
case T_VOID:
140140
return result;
141-
default : ShouldNotReachHere();
141+
default:
142+
ShouldNotReachHere();
143+
return result; // silence compiler warnings
142144
}
143145
}
144146

0 commit comments

Comments
 (0)
Please sign in to comment.