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

    • Resolved In Build:
      b22

      Backports

        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:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: