Remove -Wsystem-headers from tests
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 16 Apr 2021 20:06:11 +0000 (16:06 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 19 Apr 2021 17:33:10 +0000 (13:33 -0400)
The objective of add -Wsystem-headers to the tests Makefiles was to
catch warnings in the tracepoint headers when they are installed in the
compiler system header path. However the tests are always built against
the headers inside the tree which are not in the system header path.

A side effect is that it causes problems on some system where the system
headers generate warnings and thus prevent us from building with
warnings treated as errors.

Change-Id: I65529c50cf48e49ba34692e6d501e3218be8d41c
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/benchmark/Makefile.am
tests/compile/ctf-types/Makefile.am
tests/compile/hello-many/Makefile.am
tests/compile/hello.cxx/Makefile.am
tests/compile/hello/Makefile.am
tests/compile/same_line_tracepoint/Makefile.am
tests/compile/test-app-ctx/Makefile.am

index efa09cef818d15a6c1968dd1097cbb20bd2567b5..7a71fdc5d479ea1f0145c79443e93e5298d8d6bb 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-only
 
-AM_CPPFLAGS += -I$(srcdir) -Wsystem-headers
+AM_CPPFLAGS += -I$(srcdir)
 
 noinst_PROGRAMS = bench1 bench2
 bench1_SOURCES = bench.c tp.c ust_tests_benchmark.h
index eea45dea865da0b9622eff7c3ece66e9a8b69596..cb268fe484ad0255d4c29a0524774539b18fa914 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-only
 
-AM_CPPFLAGS += -I$(srcdir) -Wsystem-headers
+AM_CPPFLAGS += -I$(srcdir)
 
 noinst_PROGRAMS = ctf-types
 ctf_types_SOURCES = ctf-types.c tp.c ust_tests_ctf_types.h
index a6fc3c3fefbf9e4e9c1ac5036235b309fbba9078..58701fb2ce795be552ef3781edd87c9508295c7b 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-only
 
-AM_CPPFLAGS += -I$(srcdir) -Wsystem-headers
+AM_CPPFLAGS += -I$(srcdir)
 
 noinst_PROGRAMS = hello-many
 hello_many_SOURCES = hello-many.c tp.c ust_tests_hello_many.h
index 153ca1e1078ebb205d186b8bd119b577c758b08e..c89c27e76e952aba48af94ad013e15a25f2a236c 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-only
 
-AM_CPPFLAGS += -I$(srcdir) -Wsystem-headers
+AM_CPPFLAGS += -I$(srcdir)
 
 noinst_PROGRAMS = hello
 hello_SOURCES = hello.cpp tp-cpp.cpp ust_tests_hello.h
index 2ff99328c07362a4a9f2e9acc100e40992b1a173..e212d922b97ee51154a3197731dcad517cf4a009 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-only
 
-AM_CPPFLAGS += -I$(srcdir) -Wsystem-headers
+AM_CPPFLAGS += -I$(srcdir)
 
 noinst_PROGRAMS = hello
 hello_SOURCES = hello.c tp.c ust_tests_hello.h
index ef4d6daea05f0b8a7586e673e0ba233e4f644a77..6d3ac3e141925f8ed52c05f5f6ff8330d8dcce36 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-only
 
-AM_CPPFLAGS += -I$(srcdir) -Wsystem-headers
+AM_CPPFLAGS += -I$(srcdir)
 
 noinst_PROGRAMS = same_line_tracepoint
 same_line_tracepoint_SOURCES = same_line_tracepoint.c ust_tests_sameline.h
index c515859a091bec61ec77dbd955e5dcf9d7ed1c5c..c8b6281cea5ad473f7391152933f76c9e567404f 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-only
 
-AM_CPPFLAGS += -I$(srcdir) -Wsystem-headers
+AM_CPPFLAGS += -I$(srcdir)
 
 noinst_PROGRAMS = hello
 hello_SOURCES = hello.c tp.c ust_tests_hello.h
This page took 0.027461 seconds and 4 git commands to generate.