From: Michael Jeanson Date: Thu, 14 Dec 2023 21:10:28 +0000 (-0500) Subject: jjb: remove -DDEBUG from coverity CFLAGS X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=1371b4a117a8e1e2391e7a72472bc5fcefe0a2bf;p=lttng-ci.git 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 --- 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"