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

MacOS aarch64: masses of "unused parameter" warnings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 18
    • Fix Version/s: tbd
    • Component/s: infrastructure
    • Labels:
    • Subcomponent:
    • CPU:
      aarch64
    • OS:
      os_x

      Description

      The build logs for MacOs aarch64 are insane, 73MB vs ~100k on intel. The reasons are masses of "unused parameter" warnings:

      ```
      2021-11-04T06:44:09.9472490Z In file included from /Users/runner/work/jdk/jdk/jdk/src/hotspot/share/classfile/classLoaderData.hpp:28:
      2021-11-04T06:44:09.9571660Z /Users/runner/work/jdk/jdk/jdk/src/hotspot/share/memory/allocation.hpp:369:30: warning: unused parameter 'p' [-Wunused-parameter]
      2021-11-04T06:44:09.9673680Z void operator delete(void* p) { ShouldNotCallThis(); }
      2021-11-04T06:44:09.9774370Z ^
      2021-11-04T06:44:09.9876080Z /Users/runner/work/jdk/jdk/jdk/src/hotspot/share/memory/allocation.hpp:438:57: warning: unused parameter 'nothrow_constant' [-Wunused-parameter]
      2021-11-04T06:44:09.9977090Z void* operator new(size_t size, const std::nothrow_t& nothrow_constant) throw() {
      ```

      in my build, I get about > 120K of these warnings. This eats up space for GHA logs and makes downloading them a chore.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              stuefe Thomas Stuefe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: