8199125: --disable-warnings-as-errors does not work for native jtreg test code
authorerikj
Tue, 06 Mar 2018 17:30:13 +0100
changeset 49137 50f5ea3292f1
parent 49136 e9a335686df9
child 49138 67912cbf784a
8199125: --disable-warnings-as-errors does not work for native jtreg test code Reviewed-by: ihse
make/common/TestFilesCompilation.gmk
--- a/make/common/TestFilesCompilation.gmk	Tue Mar 06 17:24:56 2018 +0100
+++ b/make/common/TestFilesCompilation.gmk	Tue Mar 06 17:30:13 2018 +0100
@@ -59,13 +59,13 @@
   ifeq ($$($1_TYPE), LIBRARY)
     $1_PREFIX = lib
     $1_OUTPUT_SUBDIR := lib
-    $1_CFLAGS := $(CFLAGS_TESTLIB) $(CFLAGS_WARNINGS_ARE_ERRORS)
+    $1_CFLAGS := $(CFLAGS_TESTLIB)
     $1_LDFLAGS := $(LDFLAGS_TESTLIB) $(call SET_SHARED_LIBRARY_ORIGIN)
     $1_COMPILATION_TYPE := LIBRARY
   else ifeq ($$($1_TYPE), PROGRAM)
     $1_PREFIX = exe
     $1_OUTPUT_SUBDIR := bin
-    $1_CFLAGS := $(CFLAGS_TESTEXE) $(CFLAGS_WARNINGS_ARE_ERRORS)
+    $1_CFLAGS := $(CFLAGS_TESTEXE)
     $1_LDFLAGS := $(LDFLAGS_TESTEXE)
     $1_COMPILATION_TYPE := EXECUTABLE
   else