Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bjones1
Copy link
Contributor

@bjones1 bjones1 commented Oct 12, 2023

This adds warning flags for MSVC and cleans up minor complains when it's passed GCC-only flags.

@bjones1 bjones1 marked this pull request as ready for review October 12, 2023 13:02
@jbaldwin
Copy link
Owner

Since you are now starting to add specific MSVC flags to the cmake files can you add a GitHub action that compiles with MSVC and runs the tests please?

@bjones1
Copy link
Contributor Author

bjones1 commented Oct 16, 2023

I'd be happy to. However, tests will fail until this and the other PRs are merged. Is that OK?

@bjones1 bjones1 mentioned this pull request Oct 16, 2023
@bjones1
Copy link
Contributor Author

bjones1 commented Oct 16, 2023

Since you are now starting to add specific MSVC flags to the cmake files can you add a GitHub action that compiles with MSVC and runs the tests please?

I went ahead and created #188.

@jbaldwin
Copy link
Owner

Cool #188 works, we can work towards getting that to pass with each PR.

jbaldwin
jbaldwin previously approved these changes Oct 18, 2023
Update: Require newer CMake version to properly merge warning flags.

Otherwise, cl complains that both /W3 (the default warning level) and /W4 are passed. Newer CMake fixes this.
…cified in GCC-specific code).

Fix: Add MSVC flags to produce more warnings.
@bjones1
Copy link
Contributor Author

bjones1 commented Oct 18, 2023

Fantastic!

@jbaldwin
Copy link
Owner

Sorry, looks like this has a conflict now with the other two PRs that just merged, would you mind resolving them?

# Conflicts:
#	CMakeLists.txt
#	test/CMakeLists.txt
@bjones1
Copy link
Contributor Author

bjones1 commented Oct 18, 2023

No problem, done!

@jbaldwin jbaldwin merged commit 0a67d46 into jbaldwin:main Oct 18, 2023
@bjones1 bjones1 deleted the msvc-flags branch October 18, 2023 14:32
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