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

use (void) instead of unused variable

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Won't Fix
    • P5
    • 9
    • 9
    • hotspot

    Description

      $ ack -A1 "Make an unused local variable to avoid warning" src/
      src/share/vm/prims/jvm.cpp
      2814: // Make an unused local variable to avoid warning from gcc 4.x compiler.
      2815- size_t count = ::write(defaultStream::output_fd(), s, (int)strlen(s));

      src/share/vm/utilities/ostream.cpp
      549: // Make an unused local variable to avoid warning from gcc 4.x compiler.
      550- size_t count = fwrite(s, 1, len, _file);
      --
      599: // Make an unused local variable to avoid warning from gcc 4.x compiler.
      600- size_t count = ::write(_fd, s, (int)len);

      Attachments

        Issue Links

          Activity

            People

              lfoltan Lois Foltan
              twisti Christian Thalinger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: