Mercurial > hg > truffle
comparison src/share/vm/prims/jvm.cpp @ 513:2328d1d3f8cf
6781583: Hotspot build fails on linux 64 bit platform with gcc 4.3.2
Summary: Fixed the wrong cast between types since more restrictions are imposed by gcc 4.3.2
Reviewed-by: jcoomes, acorn, phh, never
author | xlu |
---|---|
date | Wed, 24 Dec 2008 19:13:53 -0800 |
parents | a45484ea312d |
children | 0fbdb4381b99 |
comparison
equal
deleted
inserted
replaced
512:db4caa99ef11 | 513:2328d1d3f8cf |
---|---|
2473 void jio_print(const char* s) { | 2473 void jio_print(const char* s) { |
2474 // Try to make this function as atomic as possible. | 2474 // Try to make this function as atomic as possible. |
2475 if (Arguments::vfprintf_hook() != NULL) { | 2475 if (Arguments::vfprintf_hook() != NULL) { |
2476 jio_fprintf(defaultStream::output_stream(), "%s", s); | 2476 jio_fprintf(defaultStream::output_stream(), "%s", s); |
2477 } else { | 2477 } else { |
2478 ::write(defaultStream::output_fd(), s, (int)strlen(s)); | 2478 // Make an unused local variable to avoid warning from gcc 4.x compiler. |
2479 size_t count = ::write(defaultStream::output_fd(), s, (int)strlen(s)); | |
2479 } | 2480 } |
2480 } | 2481 } |
2481 | 2482 |
2482 } // Extern C | 2483 } // Extern C |
2483 | 2484 |