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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 19
    • 19
    • 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

              shade Aleksey Shipilev
              mdoerr Martin Doerr
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: