Skip to content

build(cmake): enable strict compiler warnings and fix shadowing - #33

Merged
rfprod merged 1 commit into
mainfrom
cmake-conf
Nov 30, 2026
Merged

rfprod merged 1 commit into
mainfrom
cmake-conf

Conversation

@rfprod

@rfprod rfprod commented Nov 30, 2026

Copy link
Copy Markdown
Owner
  • add strict warnings: -Wall -Wextra -Wpedantic -Wconversion -Wshadow, /W4 /WX;
  • add debug and release optimization flags for GCC, Clang, and MSVC;
  • cast model vector sizes to int to avoid signed/unsigned comparison warnings;
  • rename HttpException member to _status_code to fix shadowing;

- [x] add strict warnings: `-Wall` `-Wextra` `-Wpedantic` `-Wconversion` `-Wshadow`, `/W4` `/WX`;
- [x] add debug and release optimization flags for `GCC`, `Clang`, and `MSVC`;
- [x] cast model vector sizes to int to avoid `signed`/`unsigned` comparison warnings;
- [x] rename `HttpException` member to `_status_code` to fix shadowing;
@rfprod rfprod self-assigned this Nov 30, 2026
@rfprod rfprod added Refactor Refactoring related changes. Program Main program logic related changes. labels Nov 30, 2026
@rfprod
rfprod enabled auto-merge (squash) November 30, 2026 09:59
@rfprod
rfprod merged commit 195e5af into main Nov 30, 2026
3 checks passed
@rfprod
rfprod deleted the cmake-conf branch November 30, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Program Main program logic related changes. Refactor Refactoring related changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant