-
Notifications
You must be signed in to change notification settings - Fork 28
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
Avoid compiler warnings #518
Avoid compiler warnings #518
Conversation
… compiler macro, avoids a build warning: ``` /home/dagardner/work/conda/envs/mrc2/include/boost/fiber/buffered_channel.hpp:71:18: warning: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=] 71 | slots_ = new slot_type[capacity_]; ``` Remove unused macros
…r than a compiler macro, avoids a build warning:" This reverts commit 136d27d.
…ating arrays larger than PTRDIFF_MAX
/merge |
* Set CMake policy #`CMP0144` to `NEW` in C++ examples, avoids a deprecation warning * Set `-lto=auto` to avoid a warning about falling back to serialized compilation. Related to nv-morpheus/MRC#518 . Closes #1988 ## By Submitting this PR I confirm: - I am familiar with the [Contributing Guidelines](https://github.com/nv-morpheus/Morpheus/blob/main/docs/source/developer_guide/contributing.md). - When the PR is ready for review, new or existing tests cover these changes. - When the PR is ready for review, the documentation is up to date with these changes. Authors: - David Gardner (https://github.com/dagardner-nv) Approvers: - Michael Demoret (https://github.com/mdemoret-nv) URL: #2054
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## branch-25.02 #518 +/- ##
=============================================
Coverage 74.17% 74.18%
=============================================
Files 407 407
Lines 15049 15051 +2
Branches 1192 1192
=============================================
+ Hits 11163 11165 +2
Misses 3886 3886
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
|
Description
-lto=auto
to avoid a warning about [falling back to serialized compilation (cpp/mrc/CMakeLists.txt
)PTRDIFF_MAX
toboost::fibers::buffered_channel
avoids a -Walloc-size-larger-than compiler warning (cpp/mrc/include/mrc/channel/buffered_channel.hpp
).Everything else is an IWYU fix
Part of nv-morpheus/Morpheus#1988
Closes #516
Checklist