Skip to content

Commit ee25e2a

Browse files
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
1 parent 26bd4f4 commit ee25e2a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/installcheck.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Build AGE
4949
id: build
5050
run: |
51-
make PG_CONFIG=$HOME/pg18/bin/pg_config install -j$(nproc)
51+
make PG_CONFIG=$HOME/pg18/bin/pg_config COPT=-Werror install -j$(nproc)
5252
5353
- name: Pull and build pgvector
5454
id: pgvector

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ src/include/parser/cypher_kwlist_d.h: src/include/parser/cypher_kwlist.h $(GEN_K
221221

222222
src/include/parser/cypher_gram_def.h: src/backend/parser/cypher_gram.c
223223

224-
src/backend/parser/cypher_gram.c: BISONFLAGS += --defines=src/include/parser/cypher_gram_def.h
224+
src/backend/parser/cypher_gram.c: BISONFLAGS += --defines=src/include/parser/cypher_gram_def.h -Werror
225225

226226
src/backend/parser/cypher_parser.o: src/backend/parser/cypher_gram.c src/include/parser/cypher_gram_def.h
227227
src/backend/parser/cypher_parser.bc: src/backend/parser/cypher_gram.c src/include/parser/cypher_gram_def.h

0 commit comments

Comments
 (0)