From 1371b4a117a8e1e2391e7a72472bc5fcefe0a2bf Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Thu, 14 Dec 2023 16:10:28 -0500 Subject: [PATCH] jjb: remove -DDEBUG from coverity CFLAGS As far as I know we don't use this define and it conflicts with a loglevel enum value in babeltrace. Change-Id: I197deacfdd178288404ddb8f2ad94034baf512ed Signed-off-by: Michael Jeanson --- scripts/common/coverity.sh | 4 ++-- scripts/common/scan-build.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/common/coverity.sh b/scripts/common/coverity.sh index 80abedd..21e76ab 100755 --- a/scripts/common/coverity.sh +++ b/scripts/common/coverity.sh @@ -34,8 +34,8 @@ TMPDIR="$WORKSPACE/tmp" NPROC=$(nproc) PLATFORM=$(uname) -export CFLAGS="-O0 -g -DDEBUG" -export CXXFLAGS="-O0 -g -DDEBUG" +export CFLAGS="-O0 -g" +export CXXFLAGS="-O0 -g" # Cache the tool installer in the home directory since we delete the workspace # on each build diff --git a/scripts/common/scan-build.sh b/scripts/common/scan-build.sh index 9f3caea..478fff1 100755 --- a/scripts/common/scan-build.sh +++ b/scripts/common/scan-build.sh @@ -36,7 +36,8 @@ SRCDIR="$WORKSPACE/src/$PROJECT_NAME" TMPDIR="$WORKSPACE/tmp" NPROC=$(nproc) -export CFLAGS="-O0 -g -DDEBUG" +export CFLAGS="-O0 -g" +export CXXFLAGS="-O0 -g" # Directory to archive the scan-build report SCAN_BUILD_ARCHIVE="${WORKSPACE}/scan-build-archive" -- 2.34.1