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

[MacOS] build failure: non-void function does not return a value

XMLWordPrintable

    • b04
    • 23
    • b06
    • generic
    • os_x

      Build environment:
      MacBook Pro M1 Max
      MacOS 14.2.1 (Sonoma)
      Xcode 12.5.1

      Error observed:
      /Users/common/Workspace/OpenJDK/jdk/jdk/src/hotspot/share/opto/castnode.cpp:471:1: error: non-void function does not return a value in all control paths [-Werror,-Wreturn-type]

      Compiler does not recognize the fatal() call at the end of the method as the end-of-life event for the program.

      I know, the Xcode version is somewhat back level. Nevertheless, I would appreciate if this would be fixed to help those who are not able (for whatever reason) to upgrade Xcode.

            jcao Joshua Cao
            lucy Lutz Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: