aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2021-05-27 14:37:30 +0300
committerMatias Elo <matias.elo@nokia.com>2021-05-31 16:11:27 +0300
commit121ea2bbc5f145301f8d42c6310a4d249f1d8abf (patch)
tree8eb44476987f1b746b50fcaa5ff614b77a366210
parent2964aac686d1d228368a8181df8eaed07f23c0f1 (diff)
scripts: build: disable warnings from dpdk internals
Ignore warnings from aarch64 DPDK internals. Also, remove checks already included in ODP library build (undef, pointer-arith). Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
-rwxr-xr-xscripts/ci/build.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/ci/build.sh b/scripts/ci/build.sh
index 7bc846365..ae50bf065 100755
--- a/scripts/ci/build.sh
+++ b/scripts/ci/build.sh
@@ -28,11 +28,15 @@ ODP_LIB_NAME=libodp-dpdk
fi
# Additional warning checks
-EXTRA_CHECKS="-Werror -Wall -Wextra -Wconversion -Wundef -Wpointer-arith -Wfloat-equal -Wpacked"
+EXTRA_CHECKS="-Werror -Wall -Wextra -Wconversion -Wfloat-equal -Wpacked"
# Ignore clang warning about large atomic operations causing significant performance penalty
if [ "${CC#clang}" != "${CC}" ] ; then
EXTRA_CHECKS="${EXTRA_CHECKS} -Wno-unknown-warning-option -Wno-atomic-alignment"
fi
+# Ignore warnings from aarch64 DPDK internals
+if [ "${TARGET_ARCH}" == "aarch64-linux-gnu" ] ; then
+ EXTRA_CHECKS="${EXTRA_CHECKS} -Wno-conversion -Wno-packed"
+fi
CC="${CC:-${TARGET_ARCH}-gcc}"
${CC} ${CFLAGS} ${EXTRA_CHECKS} ${OLDPWD}/example/hello/odp_hello.c -o odp_hello_inst_dynamic \