From acb8b0c37adc09c9492deead4715079b086bb408 Mon Sep 17 00:00:00 2001 From: Arseny Kositsyn Date: Tue, 27 Jan 2026 13:46:21 +0300 Subject: [PATCH] [PGPRO-16769] Fix Travis CI failures scan-build with clang-21 fails when analyzing PostgreSQL extensions built via PGXS. The issue occurs because: - scan-build sets CLANG environment variable to the analyzer path - PGXS resets CLANG to an empty string - ccc-analyzer v21 does not check the CLANG variable for an empty string - This causes ccc-analyzer to attempt executing an empty command string Fixed by explicitly passing CLANG as a make command-line argument. Tags: pg_query_state --- run_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_tests.sh b/run_tests.sh index de0116e..cf5233d 100644 --- a/run_tests.sh +++ b/run_tests.sh @@ -95,7 +95,7 @@ if [ "$LEVEL" = "scan-build" ] || \ [ "$LEVEL" = "nightmare" ]; then # perform static analyzis - scan-build --status-bugs make USE_PGXS=1 || status=$? + scan-build --status-bugs make USE_PGXS=1 CLANG=clang || status=$? # something's wrong, exit now! if [ $status -ne 0 ]; then exit 1; fi