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

exeCallerAccessTest.c fails to build: control reaches end of non-void function

    XMLWordPrintable

Details

    Backports

      Description

        Building with older GCC:

        * Toolchain: gcc (GNU Compiler Collection)
        * C Compiler: Version 4.8.5 (at /bin/gcc)
        * C++ Compiler: Version 4.8.5 (at /bin/g++)

        ...fails after JDK-8221530 when "run-test" compiles the native test code:

        * For target support_test_jdk_jtreg_native_support_exeCallerAccessTest_exeCallerAccessTest.o:
        /home/jenkins/workspace/nightly/jdk-jdk/test/jdk/java/lang/reflect/exeCallerAccessTest/exeCallerAccessTest.c: In function 'main':
        /home/jenkins/workspace/nightly/jdk-jdk/test/jdk/java/lang/reflect/exeCallerAccessTest/exeCallerAccessTest.c:96:1: error: control reaches end of non-void function [-Werror=return-type]
         }
         ^
        cc1: all warnings being treated as errors

        Attachments

          Issue Links

            Activity

              People

                shade Aleksey Shipilev
                shade Aleksey Shipilev
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: