Skip to content
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

Cleaning up cmake and enabled more warnings. #666

Merged
merged 3 commits into from
Dec 19, 2023

Conversation

palerikm
Copy link
Member

Warning! There are still lots of compiler warnings turned off.
A good code cleanup is needed to turn those on (cmake/Warnings.cmake)
-Wformat=2 # warn on security issues around functions that format output
-Wcast-align # warn for potential performance problem casts
-Wconversion # warn on type conversions that may lose data
-Wsign-conversion # warn on sign conversions

* Cleaning up cmake and enabled more warnings.
(CMake structure from https://github.com/franneck94/CppProjectTemplate)

* dummy commit to trigger workflow

* revert "dummy commit to trigger workflow"

* Adopt to sligtly modified CMake default options

* One more try

* Ditch tools

* Add warnings to test target(s)

* Turning off clang warnings.

Ignoring string literal warnings in tests output.

* Revert "Turning off clang warnings."

This reverts commit 82b7812.

* Turning off warnings for clang

* Turning off MSVC warnings.

* Removed unused options and turn of sanitizers by default.

* Turn on C extensions. Otherwise GXX wont find networking and singnaling structs.

* Opps. Deleted the wrong file a few commits ago. Fixing now.

* Cleaning up

---------

Co-authored-by: Pascal Bühler <[email protected]>
@pabuhler
Copy link
Member

LGTM, if only the conflict was fixed :)

@palerikm
Copy link
Member Author

Sorry about that. Conflicts resolved.

@pabuhler pabuhler merged commit e8059c3 into cisco:main Dec 19, 2023
30 checks passed
@pabuhler pabuhler deleted the cmake_with_warnings branch December 19, 2023 08:39
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.

2 participants