mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
6781583: Hotspot build fails on linux 64 bit platform with gcc 4.3.2
Fixed the wrong cast between types since more restrictions are imposed by gcc 4.3.2 Reviewed-by: jcoomes, acorn, phh, never
This commit is contained in:
parent
1362b9fd1d
commit
f05b009ce8
16 changed files with 76 additions and 49 deletions
|
@ -2475,7 +2475,8 @@ void jio_print(const char* s) {
|
|||
if (Arguments::vfprintf_hook() != NULL) {
|
||||
jio_fprintf(defaultStream::output_stream(), "%s", s);
|
||||
} else {
|
||||
::write(defaultStream::output_fd(), s, (int)strlen(s));
|
||||
// Make an unused local variable to avoid warning from gcc 4.x compiler.
|
||||
size_t count = ::write(defaultStream::output_fd(), s, (int)strlen(s));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue