Skip to content

Commit 07d69fc

Browse files
authored
chore: enable cxx compiler warnings in vortex-duckdb/build.rs (#3836)
Signed-off-by: Alexander Droste <[email protected]>
1 parent 0931a1e commit 07d69fc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vortex-duckdb/build.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,14 @@ fn main() {
185185
// Compile our C++ code that exposes additional DuckDB functionality.
186186
cc::Build::new()
187187
.std("c++17")
188+
// Enable compiler warnings.
189+
.flag("-Wall")
190+
.flag("-Wextra")
191+
.flag("-Wpedantic")
188192
// Allow C++20 designator syntax even with C++17 std
189193
.flag("-Wno-c++20-designator")
194+
// Unused parameter warnings are disabled as we include DuckDB
195+
// headers with implementations that have unused parameters.
190196
.flag("-Wno-unused-parameter")
191197
// We include DuckDB headers from the DuckDB extension submodule.
192198
.include(duckdb_repo.join(format!("duckdb-{DUCKDB_VERSION}/src/include")))

0 commit comments

Comments
 (0)