Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8266167 Clean up GCC 11 warnings
  3. JDK-8266168

-Wmaybe-uninitialized happens in check_code.c

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: core-libs
    • Labels:
      None
    • Resolved In Build:
      b22

      Description

      /home/ysuenaga/git-forked/jdk/src/java.base/share/native/libverify/check_code.c: In function 'signature_to_fieldtype':
      /home/ysuenaga/git-forked/jdk/src/java.base/share/native/libverify/check_code.c:3825:21: warning: 'buffer' may be used uninitialized [-Wmaybe-uninitialized]
       3825 | check_and_push(context, buffer, VM_MALLOC_BLK);
            | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /home/ysuenaga/git-forked/jdk/src/java.base/share/native/libverify/check_code.c:4144:13: note: by argument 2 of type 'const void *' to 'check_and_push' declared here
       4144 | static void check_and_push(context_type *context, const void *ptr, int kind)
            | ^~~~~~~~~~~~~~

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ysuenaga Yasumasa Suenaga
              Reporter:
              ysuenaga Yasumasa Suenaga
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: