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

[11u] awt_ImagingLib passes arguments to function without a prototype

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 11
    • infrastructure
    • None
    • generic
    • os_x

      Building 11u on the latest macos-13 GHA platform (XCode 14, clang 14) fails as we are passing arguments to a function without a prototype (see [1] for examples) and this is deprecated in this platform.

      The build should exclude the `-Werror,-Wdeprecated-non-prototype` flags in the builds.

      This is a 11u only issue, as the make infrastructure was reorganized in JDK-8244044 after OpenJDK 15, and enhanced afterwards. Backporting JDK-8244044 is an important change that should be avoided unless strictly necessary.


      [1]
      ```
      src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:430:43: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
      src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:458:44: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
      src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:677:43: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
      src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:706:44: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
      src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:922:48: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
      src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:1140:48: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
      src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:1498:53: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
      src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:1736:55: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
      ```

            avieiro Antonio Vieiro
            avieiro Antonio Vieiro
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: