Skip to content

Fix -Wextra, -Wextra-semi, -Wsign-conversion, and -Wunused-parameter warnings in public headers - #55

Open
clockblocker wants to merge 1 commit into
mainfrom
fix-public-header-warnings
Open

clockblocker wants to merge 1 commit into
mainfrom
fix-public-header-warnings

Conversation

@clockblocker

@clockblocker clockblocker commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

AI-authored below this line.

Upstream PR: munich-data-engineering/reflect-cpp#803 · Related munich-data-engineering/reflect-cpp#582

Problem

Public headers currently emit -Wextra, -Wextra-semi, -Wsign-conversion, and -Wunused-parameter warnings.

Consumers building with -Werror have to work around this by silencing warnings on reflect-cpp globally in their build files.

# Flags: -Wall -Wextra -Werror -pedantic -Wconversion -Wsign-conversion -Wextra-semi
# Fixed across 14 public headers (+22/-18 LOC):
#   12 -Wextra-semi | 2 -Wunused-parameter | 2 -Wsign-conversion | 1 -Wmissing-field-initializers

Summary

  • Removes 12 stray semicolons, fixes two sign conversions and one missing field initializer, and drops unused parameter names across 14 public headers.
  • Compiles cleanly under -Wall -Wextra -Werror -pedantic -Wconversion -Wsign-conversion -Wextra-semi.

Consumer Impact

Consumer Location Pain point solved
hudson-trading/slang-server CMakeLists.txt#L317-L321 Suppresses header warnings in 4 CMake sites.
games-on-whales/wolf CMakeLists.txt#L38-L45 Wraps FetchContent(reflect-cpp) with -w.
munich-data-engineering/sqlgen CMakeLists.txt#L75-L78 Compiles with -Wall -Wextra -Wpedantic.
openmoq/moqx CMakeLists.txt#L351 Enforces strict warning flags across TUs.
FANUC-CORPORATION/fanuc_driver CMakeLists.txt#L17 Enables -Wall -Wextra -Wpedantic.
For Agents
  • Queue placement: Rank 5 in upstream-queue (b5306ad1) · Score 92/100 (S=29, M=25, D=23, R=15) · +22/-18 (14f)

@clockblocker
clockblocker force-pushed the fix-public-header-warnings branch from be89e52 to 37a3e8b Compare November 27, 2026 07:18
@clockblocker clockblocker changed the title Fix -Wextra-semi, -Wsign-conversion, and -Wunused-parameter warnings in public headers Fix -Wextra, -Wextra-semi, -Wsign-conversion, and -Wunused-parameter warnings in public headers Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant