Skip to content

Commit 9076673

Browse files
author
SendaoYan
committed
8304674: File java.c compile error with -fsanitize=address -O0
Reviewed-by: ihse, jwaters
1 parent 8fb67ac commit 9076673

File tree

1 file changed

+7
-0
lines changed
  • src/java.base/share/native/libjli

1 file changed

+7
-0
lines changed

src/java.base/share/native/libjli/java.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,14 @@ JavaMain(void* _args)
666666
ret = 1;
667667
}
668668
LEAVE();
669+
#if defined(__GNUC__)
670+
#pragma GCC diagnostic push
671+
#pragma GCC diagnostic ignored "-Wreturn-type"
672+
#endif
669673
}
674+
#if defined(__GNUC__)
675+
#pragma GCC diagnostic pop
676+
#endif
670677

671678
/*
672679
* Test if the given name is one of the class path options.

0 commit comments

Comments
 (0)