-
Bug
-
Resolution: Fixed
-
P3
-
25
-
b22
-
generic
-
os_x
Multiple similar issues detected in PLATFORM_API_MacOSX_Ports.cpp
more info about https://github.com/llvm/llvm-project/issues/62836
jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:127:39: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]
127 | AudioDeviceID devices[count];
| ^~~~~
jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:127:39: note: read of non-const variable 'count' is not allowed in a constant expression
jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:126:21: note: declared here
126 | int count = size/sizeof(AudioDeviceID);
more info about https://github.com/llvm/llvm-project/issues/62836
jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:127:39: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]
127 | AudioDeviceID devices[count];
| ^~~~~
jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:127:39: note: read of non-const variable 'count' is not allowed in a constant expression
jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:126:21: note: declared here
126 | int count = size/sizeof(AudioDeviceID);
- duplicates
-
JDK-8355682 Compiler warnings in PLATFORM_API_MacOSX_Ports.cpp causing build failure on macos with XCode 16.3
-
- Closed
-
- relates to
-
JDK-8355682 Compiler warnings in PLATFORM_API_MacOSX_Ports.cpp causing build failure on macos with XCode 16.3
-
- Closed
-
- links to
-
Commit(master) openjdk/jdk/762423d6
-
Review(master) openjdk/jdk24u/216
-
Review(master) openjdk/jdk/24937