Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
P4
-
Resolution: Fixed
-
Affects Version/s: openjdk7u
-
Fix Version/s: openjdk7u
-
Component/s: infrastructure
-
Labels:None
Description
/mnt/ramdisk/openjdk/hotspot/src/os/linux/vm/os_linux.inline.hpp: In static member function 'static dirent* os::readdir(DIR*, dirent*)':
/mnt/ramdisk/openjdk/hotspot/src/os/linux/vm/os_linux.inline.hpp:140: error: #pragma GCC diagnostic not allowed inside functions
/mnt/ramdisk/openjdk/hotspot/src/os/linux/vm/os_linux.inline.hpp:141: error: #pragma GCC diagnostic not allowed inside functions
/mnt/ramdisk/openjdk/hotspot/src/os/linux/vm/os_linux.inline.hpp:157: error: #pragma GCC diagnostic not allowed inside functions
Moving the pragma to just above the function definition fixes this. We also need to disable pragma warnings on GCC < 4.6, as push/pop weren't available until then.
/mnt/ramdisk/openjdk/hotspot/src/os/linux/vm/os_linux.inline.hpp:140: error: #pragma GCC diagnostic not allowed inside functions
/mnt/ramdisk/openjdk/hotspot/src/os/linux/vm/os_linux.inline.hpp:141: error: #pragma GCC diagnostic not allowed inside functions
/mnt/ramdisk/openjdk/hotspot/src/os/linux/vm/os_linux.inline.hpp:157: error: #pragma GCC diagnostic not allowed inside functions
Moving the pragma to just above the function definition fixes this. We also need to disable pragma warnings on GCC < 4.6, as push/pop weren't available until then.
Attachments
Issue Links
- relates to
-
JDK-8187667 Disable deprecation warning for readdir_r
-
- Resolved
-