aboutsummaryrefslogtreecommitdiff
path: root/scripts/ci/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ci/build.sh')
-rwxr-xr-xscripts/ci/build.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/ci/build.sh b/scripts/ci/build.sh
index 8126773ea..ae50bf065 100755
--- a/scripts/ci/build.sh
+++ b/scripts/ci/build.sh
@@ -28,7 +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 \