From 0b4af75682062516e6655939645d4fd930bdb340 Mon Sep 17 00:00:00 2001 From: Muhammad Taha Naveed Date: Sat, 18 Apr 2026 16:22:12 +0500 Subject: [PATCH] CI: fail build on compiler and bison warnings - installcheck.yaml: build with COPT=-Werror so compiler warnings fail CI - Makefile: add -Werror to BISONFLAGS for cypher_gram.c so bison conflicts/warnings fail the build --- .github/workflows/installcheck.yaml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/installcheck.yaml b/.github/workflows/installcheck.yaml index 0cbb33b90..886dc08f1 100644 --- a/.github/workflows/installcheck.yaml +++ b/.github/workflows/installcheck.yaml @@ -48,7 +48,7 @@ jobs: - name: Build AGE id: build run: | - make PG_CONFIG=$HOME/pg18/bin/pg_config install -j$(nproc) + make PG_CONFIG=$HOME/pg18/bin/pg_config COPT=-Werror install -j$(nproc) - name: Pull and build pgvector id: pgvector diff --git a/Makefile b/Makefile index e358acf38..d3d58e6c7 100644 --- a/Makefile +++ b/Makefile @@ -220,7 +220,7 @@ src/include/parser/cypher_kwlist_d.h: src/include/parser/cypher_kwlist.h $(GEN_K src/include/parser/cypher_gram_def.h: src/backend/parser/cypher_gram.c -src/backend/parser/cypher_gram.c: BISONFLAGS += --defines=src/include/parser/cypher_gram_def.h +src/backend/parser/cypher_gram.c: BISONFLAGS += --defines=src/include/parser/cypher_gram_def.h -Werror src/backend/parser/cypher_parser.o: src/backend/parser/cypher_gram.c src/include/parser/cypher_gram_def.h src/backend/parser/cypher_parser.bc: src/backend/parser/cypher_gram.c src/include/parser/cypher_gram_def.h