Skip to content

Commit

Permalink
Use -Werror in CI (#237)
Browse files Browse the repository at this point in the history
The PG15 support that was introduced in #180 introduced a bunch of
warnings when compiling. To avoid getting numb to warnings, this adds
the -Werror to our CI builds, so we catch warnings before merging to
main.

This also starts to ignore the register warning which was introduced by
PG15 support.
  • Loading branch information
JelteF authored Oct 1, 2024
1 parent e889d9a commit dd698a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
id: build
run: |
pushd duckdb
make -j8 install
make -j8 install CFLAGS=-Werror CXXFLAGS=-Werror
- name: Run make installcheck
id: installcheck
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ DUCKDB_LIB = libduckdb$(DLSUFFIX)
FULL_DUCKDB_LIB = third_party/duckdb/build/$(DUCKDB_BUILD_TYPE)/src/$(DUCKDB_LIB)

override PG_CPPFLAGS += -Iinclude -Ithird_party/duckdb/src/include -Ithird_party/duckdb/third_party/re2
override PG_CXXFLAGS += -std=c++17 -Wno-sign-compare ${DUCKDB_BUILD_CXX_FLAGS}
override PG_CXXFLAGS += -std=c++17 -Wno-sign-compare -Wno-register ${DUCKDB_BUILD_CXX_FLAGS}

SHLIB_LINK += -Wl,-rpath,$(PG_LIB)/ -lpq -Lthird_party/duckdb/build/$(DUCKDB_BUILD_TYPE)/src -L$(PG_LIB) -lduckdb -lstdc++ -llz4

Expand Down

0 comments on commit dd698a6

Please sign in to comment.