-
Enhancement
-
Resolution: Fixed
-
P4
-
9
-
b42
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8083242 | emb-9 | Stefan Karlsson | P4 | Resolved | Fixed | team |
JDK-8254172 | openjdk8u282 | Stefan Karlsson | P4 | Resolved | Fixed | b01 |
JDK-8242441 | 8u261 | David Buck | P4 | Resolved | Fixed | b03 |
JDK-8246890 | emb-8u261 | David Buck | P4 | Resolved | Fixed | team |
JDK-8199968 | openjdk7u | Stefan Karlsson | P4 | Resolved | Fixed | master |
From:
https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
"-Wreturn-type
Warn whenever a function is defined with a return type that defaults to int. Also warn about any return statement with no return value in a function whose return type is not void (falling off the end of the function body is considered returning without a value), and about a return statement with an expression in a function whose return type is void.
For C++, a function without return type always produces a diagnostic message, even when -Wno-return-type is specified. The only exceptions are ‘main’ and functions defined in system headers.
This warning is enabled by -Wall. "
- backported by
-
JDK-8083242 Turn on the -Wreturn-type warning
- Resolved
-
JDK-8199968 Turn on the -Wreturn-type warning
- Resolved
-
JDK-8242441 Turn on the -Wreturn-type warning
- Resolved
-
JDK-8246890 Turn on the -Wreturn-type warning
- Resolved
-
JDK-8254172 Turn on the -Wreturn-type warning
- Resolved
- duplicates
-
JDK-8225137 Clean up remaining CHECK_NULL -> THREAD return issues
- Closed
- relates to
-
JDK-8025688 Clang: enable return type warnings on Linux
- Closed
-
JDK-8064786 Fix debug build after 8062808: Turn on the -Wreturn-type warning
- Resolved
-
JDK-8225137 Clean up remaining CHECK_NULL -> THREAD return issues
- Closed