Skip to content

Commit efeef29

Browse files
author
SendaoYan
committed
8304674: File java.c compile error with -fsanitize=address -O0
Backport-of: 9076673d7df3c20bdb6e7fdf253030bc19a3d9dc
1 parent 5f98013 commit efeef29

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
@@ -598,7 +598,14 @@ JavaMain(void* _args)
598598
ret = (*env)->ExceptionOccurred(env) == NULL ? 0 : 1;
599599

600600
LEAVE();
601+
#if defined(__GNUC__)
602+
#pragma GCC diagnostic push
603+
#pragma GCC diagnostic ignored "-Wreturn-type"
604+
#endif
601605
}
606+
#if defined(__GNUC__)
607+
#pragma GCC diagnostic pop
608+
#endif
602609

603610
/*
604611
* Test if the given name is one of the class path options.

0 commit comments

Comments
 (0)