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

Fix a smattering of errors and warnings with newer compilers #461

Merged

Conversation

mattw-nws
Copy link
Contributor

Fixes one actual build error in NexusTests.cpp and a bunch of warnings to clean up output.

After this only the GetValue -> GetValues deprecation warning remains 🎉

Additions

  • Added std:: to string vector in NexusTests.cpp
  • Put #if around Selector constructors that are only needed for older compilers
  • Added several missing override statements that were being warned on

Removals

Changes

  • Bumped googletest to 1.12.1

Testing

Screenshots

Notes

Todos

Checklist

  • PR has an informative and human-readable title
  • Changes are limited to a single goal (no scope creep)
  • Code can be automatically merged (no conflicts)
  • Code follows project standards (link if applicable)
  • Passes all existing automated tests
  • Any change in functionality is tested
  • New functions are documented (with a description, list of inputs, and expected output)
  • Placeholder code is flagged / future todos are captured in comments
  • Project documentation has been updated (including the "Unreleased" section of the CHANGELOG)
  • Reviewers requested with the Reviewers tool ➡️

Testing checklist (automated report can be put here)

Target Environment support

  • Linux

@@ -134,7 +134,9 @@ class CSVDataSelector : public CatchmentAggrDataSelector
CatchmentAggrDataSelector(std::string(), var, start, dur, units)
{}

#if GCC_VERSION < 8 && !defined(__llvm__)
Copy link
Contributor Author

@mattw-nws mattw-nws Oct 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finally tried this with GCC6... I did not see the warnings and it compiled... so it looks like 8 is the right version to break this on (maybe 7 but 🤷 ).

@robertbartel robertbartel merged commit 5e6521a into NOAA-OWP:master Oct 31, 2022
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