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

use (void) instead of unused variable

XMLWordPrintable

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

      $ 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);

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

              Created:
              Updated:
              Resolved: