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

8000332 has introduced compiler warnings in sadis.c on some compilers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • hs25
    • hotspot
    • svc
    • b05

      8000332 changed sadis.c to include the standard <string.h> header rather than BSD-style <strings.h>. However when building on linux with gcc4.6.3 this causes the following warnings:

      Making SA debugger back-end...
      /java/embedded/users/dh198349/build-infra/hotspot/agent/src/share/native/sadis.c: In function âprintf_to_envâ:
      /java/embedded/users/dh198349/build-infra/hotspot/agent/src/share/native/sadis.c:205:17: warning: incompatible implicit decl
      aration of built-in function âstrlenâ [enabled by default]
      /java/embedded/users/dh198349/build-infra/hotspot/agent/src/share/native/sadis.c:210:7: warning: incompatible implicit decla
      ration of built-in function âstrchrâ [enabled by default]

      Also with gcc 4.3.3

      Making SA debugger back-end...
      /java/embedded/users/dh198349/build-infra/hotspot/agent/src/share/native/sadis.c: In function 'printf_to_env':
      /java/embedded/users/dh198349/build-infra/hotspot/agent/src/share/native/sadis.c:205: warning: incompatible implicit declara
      tion of built-in function 'strlen'
      /java/embedded/users/dh198349/build-infra/hotspot/agent/src/share/native/sadis.c:210: warning: incompatible implicit declara
      tion of built-in function 'strchr'

      JPRT builds seem unaffected - I don't know what gcc version they are using

            minqi Yumin Qi
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: