1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-06-04 14:10:01 +00:00

atp/atp-native: don't pass -Werror

New compiler is now warning about ignored return values[1], so patch out
the use of -Werror, which is bad practise outside of development builds.

[1] https://github.com/ARM-software/ATP-Engine/issues/9

Signed-off-by: Ross Burton <ross.burton@arm.com>
This commit is contained in:
Ross Burton
2021-11-08 14:15:26 +00:00
parent 8527e69355
commit 2ef815bb71
2 changed files with 20 additions and 1 deletions
@@ -4,7 +4,8 @@ inherit pkgconfig native
SUMMARY = "AMBA ATP Engine: synthetic traffic interface modelling framework"
S = "${WORKDIR}/git"
SRC_URI = "${ATP_SRC}"
SRC_URI = "${ATP_SRC} \
file://no-werror.patch"
EXTRA_OEMAKE += "EXTRA_CXX_FLAGS='${CXXFLAGS}' EXTRA_LD_FLAGS='${LDFLAGS}'"
@@ -0,0 +1,18 @@
Don't pass -Werror, as new compilers introduce new warnings.
Upstream-Status: Pending
Signed-off-by: Ross Burton <ross.burton@arm.com>
diff --git a/Makefile b/Makefile
index c01b120..1d3c30a 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ PROTOBUF_C_FLAGS:= $(shell pkg-config --cflags protobuf)
CPPUNIT_C_FLAGS := $(shell pkg-config --cflags cppunit)
PROTOBUF_L_FLAGS:= $(shell pkg-config --libs protobuf)
CPPUNIT_L_FLAGS := $(shell pkg-config --libs cppunit)
-CXX_FLAGS := $(PROTOBUF_C_FLAGS) -std=c++11 -Wall -Werror -Wextra -Wno-unused-parameter -Wno-unused-variable $(CPPUNIT_C_FLAGS) -fPIC $(EXTRA_CXX_FLAGS)
+CXX_FLAGS := $(PROTOBUF_C_FLAGS) -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wno-unused-variable $(CPPUNIT_C_FLAGS) -fPIC $(EXTRA_CXX_FLAGS)
LD_FLAGS := $(PROTOBUF_L_FLAGS) $(CPPUNIT_L_FLAGS) $(EXTRA_LD_FLAGS)
PROTO_SRC_DIR := ./proto/
PROTO_SRC := $(wildcard $(PROTO_SRC_DIR)tp*.proto)