Details
-
Task
-
Resolution: Fixed
-
P1
-
9
-
Maverick
Xcode 5.1
-
b15
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8045446 | 8u25 | David Chase | P1 | Resolved | Fixed | b01 |
JDK-8043808 | 8u20 | David Chase | P4 | Resolved | Fixed | b16 |
JDK-8052670 | emb-8u26 | David Chase | P1 | Resolved | Fixed | b17 |
JDK-8197510 | 7u171 | Andrew Hughes | P4 | Resolved | Fixed | b01 |
Description
Quoted from http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html,
"-Wformat-nonliteral
If -Wformat is specified, also warn if the format string is not a string literal and so cannot be checked, unless the format function takes its format arguments as a va_list."
As for clang, quoted from http://clang.llvm.org/docs/AttributeReference.html?highlight=wformat#format-gnu-format,
"Clang checks that the format string argument is a literal string. This is the -Wformat-nonliteral warning, it is off by default.
Clang implements this mostly the same way as GCC, but there is a difference for functions that accept a va_list argument (for example, vprintf). GCC does not emit -Wformat-nonliteral warning for calls to such fuctions. Clang does not warn if the format string comes from a function parameter, where the function is annotated with a compatible attribute, otherwise it warns."
Attachments
Issue Links
- backported by
-
JDK-8197510 fastdebug builds fail due to lack of p2i
- Resolved
-
JDK-8045446 Fix for 8036122 breaks build with Xcode5/clang
- Resolved
-
JDK-8052670 Fix for 8036122 breaks build with Xcode5/clang
- Resolved
-
JDK-8043808 Fix for 8036122 breaks build with Xcode5/clang
- Resolved
- duplicates
-
JDK-8042661 Enhance the fix for 8030011 to avoid warnings when using -Wstring-plus-int
- Closed
-
JDK-8029996 Use __attribute__((format...)) for printf-style methods
- Closed
- relates to
-
JDK-8042891 Format issues embedded in macros for two g1 source files
- Resolved
-
JDK-8043164 Format warning in traceStream.hpp
- Resolved
-
JDK-8042893 compiler: PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC needs to be removed from source files
- Resolved
-
JDK-8042894 runtime: PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC needs to be removed from source files
- Resolved
-
JDK-8256720 Clang builds are broken after 8036122
- Open
-
JDK-8019470 Changes needed to compile JDK 8 on MacOS with clang compiler
- Resolved
-
JDK-8036122 Fix warning "format not a string literal"
- Resolved
-
JDK-8048169 Change 8037816 breaks HS build on PPC64 and CPP-Interpreter platforms
- Closed
-
JDK-8255286 Implement ParametersTypeData::print_data_on fully
- Resolved