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

VS2017 (C4477) java.base/windows/native/libnet/NetworkInterface_winXP.c incorrect printf format strings

    Details

    • Resolved In Build:
      b04
    • OS:
      windows
    • Verification:
      Not verified

      Description

      NetworkInterface_winXP.c
      <directory>/open/src/java.base/windows/native/libnet/NetworkInterface_winXP.c(42): error C2220: warning treated as error - no 'object' file gene
      rated
      <directory>/open/src/java.base/windows/native/libnet/NetworkInterface_winXP.c(42): warning C4477: 'printf' : format string '%I64x' requires an a
      rgument of type 'unsigned __int64', but variadic argument 1 has type 'netif *'
      <directory>/open/src/java.base/windows/native/libnet/NetworkInterface_winXP.c(47): warning C4477: 'printf' : format string '%S' requires an argu
      ment of type 'unsigned short *', but variadic argument 1 has type 'char *'
      <directory>/open/src/java.base/windows/native/libnet/NetworkInterface_winXP.c(47): note: consider using '%hS' in the format string
      <directory>/open/src/java.base/windows/native/libnet/NetworkInterface_winXP.c(47): note: consider using '%TS' in the format string

        Attachments

          Activity

            People

            • Assignee:
              bpb Brian Burkhalter
              Reporter:
              lfoltan Lois Foltan
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: