False build warning-as-error with GCC 9 after JDK-8214976

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 19
    • Affects Version/s: 19
    • Component/s: hotspot
    • b27
    • linux

        gcc version 9.4.0 (also 9.3.1) produces build warning after JDK-8214976:

        os_posix.cpp:786:34: error: call to 'exit' declared with attribute warning: use os::exit [-Werror=attribute-warning]
          786 | ALLOW_C_FUNCTION(::exit, ::exit(num);)
              | ~~~~~~^~~~~

        Workaround: Use configure flag --disable-warnings-as-errors

              Assignee:
              Aleksey Shipilev
              Reporter:
              Martin Doerr
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: