Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8355561

[macos] Build failure with Xcode 16.3

XMLWordPrintable

    • 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);

            serb Sergey Bylokhov
            serb Sergey Bylokhov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: