You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@age.apache.org by jg...@apache.org on 2026/04/20 15:31:44 UTC
(age) branch master updated: CI: fail build on compiler and bison warnings (#2398)
This is an automated email from the ASF dual-hosted git repository.
jrgemignani pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/age.git
The following commit(s) were added to refs/heads/master by this push:
new ee25e2a3 CI: fail build on compiler and bison warnings (#2398)
ee25e2a3 is described below
commit ee25e2a381271d60d0fae9ff21a78f8a539bca3d
Author: Muhammad Taha Naveed <mt...@apache.org>
AuthorDate: Mon Apr 20 20:31:39 2026 +0500
CI: fail build on compiler and bison warnings (#2398)
- 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 0cbb33b9..886dc08f 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 76f63c24..5405665d 100644
--- a/Makefile
+++ b/Makefile
@@ -221,7 +221,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