Skip to content

chore: suppress warnings from DuckDB headers#6909

Merged
0ax1 merged 2 commits intodevelopfrom
ad/ignore-ddb-cxx-warnings
Mar 12, 2026
Merged

chore: suppress warnings from DuckDB headers#6909
0ax1 merged 2 commits intodevelopfrom
ad/ignore-ddb-cxx-warnings

Conversation

@0ax1
Copy link
Contributor

@0ax1 0ax1 commented Mar 11, 2026

Push/pop diagnostics to suppress warnings from DuckDB headers we include but do not own. Works on both GCC and Clang via #pragma GCC diagnostic.

0ax1 added 2 commits March 11, 2026 23:12
…S_BEGIN/END

Add duckdb_diagnostics.h with push/pop diagnostic macros that suppress
-Wall, -Wextra, and -Wpedantic warnings from DuckDB headers we include
but do not own. Works on both GCC and Clang via #pragma GCC diagnostic.

Wrap all DuckDB #include directives across headers and source files with
the new macros, and remove the now-unnecessary global -Wno-unused-parameter
flag from build.rs.

Signed-off-by: Alexander Droste <alexander.droste@protonmail.com>
Remove parameter names (keeping types) for unused callback parameters
that must match DuckDB's required function signatures. This is the
standard C++ idiom for suppressing unused-parameter warnings without
altering the function signature.

Signed-off-by: Alexander Droste <alexander.droste@protonmail.com>
@0ax1 0ax1 added the changelog/chore A trivial change label Mar 11, 2026
@0ax1 0ax1 requested a review from myrrc March 11, 2026 23:18
@0ax1 0ax1 enabled auto-merge (squash) March 11, 2026 23:19
@0ax1 0ax1 changed the title chore: ignore warnings from DuckDB header definitions chore: suppress warnings from DuckDB headers Mar 11, 2026
@0ax1 0ax1 merged commit 20a3978 into develop Mar 12, 2026
54 of 55 checks passed
@0ax1 0ax1 deleted the ad/ignore-ddb-cxx-warnings branch March 12, 2026 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/chore A trivial change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants