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

Compilation errors in jdk.accessibility with VS 2017

    Details

      Description

      With the VS 2017 tool chain the following errors occur:

      jib > t:/workspace/open/src/jdk.accessibility/windows/native/jaccessinspector/jaccessinspector.cpp(1529): warning C4477: '_snprintf' : format string '%d' requires an argument of type 'int', but variadic argument 1 has type '::size_t'
      jib > t:/workspace/open/src/jdk.accessibility/windows/native/jaccessinspector/jaccessinspector.cpp(1529): note: consider using '%zd' in the format string
      jib > t:/workspace/open/src/jdk.accessibility/windows/native/jaccessinspector/jaccessinspector.cpp(1529): warning C4477: '_snprintf' : format string '%d' requires an argument of type 'int', but variadic argument 2 has type '::size_t'
      jib > t:/workspace/open/src/jdk.accessibility/windows/native/jaccessinspector/jaccessinspector.cpp(1529): note: consider using '%zd' in the format string
      jib > Creating support/modules_cmds/jdk.hotspot.agent/jhsdb.exe from 1 file(s)
      jib > Creating support/modules_libs/jdk.internal.le/le.dll from 1 file(s)
      jib > t:/workspace/open/src/jdk.accessibility/windows/native/jaccesswalker/jaccesswalker.cpp(530): warning C4311: 'type cast': pointer truncation from 'AccessibleNode *' to 'long'
      jib > t:/workspace/open/src/jdk.accessibility/windows/native/jaccesswalker/jaccesswalker.cpp(530): warning C4302: 'type cast': truncation from 'AccessibleNode *' to 'long'
      jib > t:/workspace/open/src/jdk.accessibility/windows/native/jaccesswalker/jaccesswalker.cpp(553): warning C4311: 'type cast': pointer truncation from 'AccessibleNode *' to 'long'
      jib > t:/workspace/open/src/jdk.accessibility/windows/native/jaccesswalker/jaccesswalker.cpp(553): warning C4302: 'type cast': truncation from 'AccessibleNode *' to 'long'
      jib > t:/workspace/open/src/jdk.accessibility/windows/native/jaccesswalker/jaccesswalker.cpp(546): warning C4477: 'sprintf' : format string '%p' requires an argument of type 'void *', but variadic argument 2 has type 'AccessibleContext'

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                prr Philip Race
                Reporter:
                rriggs Roger Riggs
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: