Skip to content

Commit 100c1c7

Browse files
unchecked cast
1 parent e4ed8fb commit 100c1c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

substratevm/src/com.oracle.svm.core.posix/src/com/oracle/svm/core/posix/UnmanagedMemorySupportImpl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public <T extends PointerBase> T malloc(UnsignedWord size) {
5050
}
5151

5252
@Override
53+
@SuppressWarnings("unchecked")
5354
@Uninterruptible(reason = "Called from uninterruptible code.", mayBeInlined = true)
5455
public <T extends PointerBase> T malloc(UnsignedWord size, int flag) {
5556
ReturnAddress ra = StackValue.get(ReturnAddress.class);
@@ -67,6 +68,7 @@ public <T extends PointerBase> T calloc(UnsignedWord size) {
6768
}
6869

6970
@Override
71+
@SuppressWarnings("unchecked")
7072
@Uninterruptible(reason = "Called from uninterruptible code.", mayBeInlined = true)
7173
public <T extends PointerBase> T calloc(UnsignedWord size, int flag) {
7274
ReturnAddress ra = StackValue.get(ReturnAddress.class);
@@ -84,6 +86,7 @@ public <T extends PointerBase> T realloc(T ptr, UnsignedWord size) {
8486
}
8587

8688
@Override
89+
@SuppressWarnings("unchecked")
8790
@Uninterruptible(reason = "Called from uninterruptible code.", mayBeInlined = true)
8891
public <T extends PointerBase> T realloc(T ptr, UnsignedWord size, int flag) {
8992

0 commit comments

Comments
 (0)