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

Non-x86 Zero builds fail with return-type warning in os_linux_zero.cpp

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b20

      Backports

        Description

        src/hotspot/os_cpu/linux_zero/os_linux_zero.cpp: In function long long unsigned int __sync_val_compare_and_swap_8(volatile void*, long long unsigned int, long long unsigned int):

        src/hotspot/os_cpu/linux_zero/os_linux_zero.cpp:499:3: warning: no return statement in function returning non-void [-Wreturn-type]
           }
         
        There is ShouldNotCallThis(), but no return.

        This readily reproduces in 11u. It does not seem to reproduce in HEAD, but it is a bug nevertheless.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                shade Aleksey Shipilev
                Reporter:
                shade Aleksey Shipilev
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: