Skip to content

chore: Move to C++17 and fix extra warnings #2138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Mar 20, 2025
Merged

chore: Move to C++17 and fix extra warnings #2138

merged 10 commits into from
Mar 20, 2025

Conversation

qnixsynapse
Copy link
Contributor

@qnixsynapse qnixsynapse commented Mar 17, 2025

Describe Your Changes

  • The change migrates the codebase from C++20 to C++17 by replacing C++20's designated initialization with list initialization which is supported C++17 across platforms.
    Currently, tested on Linux.

  • Also, fixed most compiler warning and removed/added attributes to some unused variables and functions

Fixes Issues

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

@qnixsynapse qnixsynapse marked this pull request as draft March 17, 2025 11:13
@qnixsynapse qnixsynapse force-pushed the migrate_c17 branch 3 times, most recently from 6f85bf0 to a356bc8 Compare March 19, 2025 01:11
@qnixsynapse qnixsynapse marked this pull request as ready for review March 20, 2025 04:45
@qnixsynapse qnixsynapse changed the title chore: [wip] Move to C++17 and fix extra warnings chore: Move to C++17 and fix extra warnings Mar 20, 2025
@vansangpfiev
Copy link
Contributor

LGTM.
It would be great if we can enable -Wpedantic -Werror for linux CI.

@qnixsynapse
Copy link
Contributor Author

Yup. I intend to enable CQA(which contains these flags) on *nix machines with valgrind and ASan.

cc: @david-menloai

@qnixsynapse qnixsynapse merged commit 2e1dfa0 into dev Mar 20, 2025
13 of 16 checks passed
@qnixsynapse qnixsynapse deleted the migrate_c17 branch March 20, 2025 08:10
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.

epic: Migrate repo to C++ 17
2 participants