[DFT] Add more warning flags #290
[DFT] Add more warning flags #290anantsrivastava30 merged 6 commits intouxlfoundation:developfrom Rbiessy:dev/warnings
Conversation
|
Tests log: tests_log.txt |
|
I have reworded the first commit description. |
Fix warnings when compiling the DFT domain with some warning flags: -Wall -Wextra -Wshadow -Wconversion -Wpedantic The same warnings can be added to more domains if desired.
Co-authored-by: HJA Bird <9040797+hjabird@users.noreply.github.com>
I see 5952 - dft/EXAMPLE/RT/real_fwd_usm/cpu (Failed) |
|
I think it would be good to be consistent across all domains for the warning flag used. It can be done in separate PR though. |
The log is older, we only recently disabled the DFT tests for the CPU backend. It's not a risk here anyway. |
I think it's a good practice to build without any warnings, so I agree with this idea. And we can add this flags to other domains after fixing all problems if we have any. |
|
@Rbiessy please let me know if you'd still like to make some changes here or if I can merge this PR. Thanks! |
Yes I am happy to see this merged once all the conversations are resolved, thanks! Note that we should make sure future PRs in the DFT domain don't create warnings. |
* [DFT] Add more warning flags Fix warnings when compiling the DFT domain with some warning flags: -Wall -Wextra -Wshadow -Wconversion -Wpedantic The same warnings can be added to more domains if desired. * Revert descriptor test changes * Remove copyright date Co-authored-by: HJA Bird <9040797+hjabird@users.noreply.github.com> * Fix recent warnings * Fix reference --------- Co-authored-by: HJA Bird <9040797+hjabird@users.noreply.github.com>
Description
This PR builds on #259.
Fix warnings when compiling the DFT domain with some warning flags:
-Wall -Wextra -Wshadow -Wconversion -Wpedantic.The same warnings can be added to more domains if desired.
As part of fixes the warnings this also splits the DFT descriptor tests
as the device was not needed for some of them.
Checklist
All Submissions
New interfaces
it was accepted? # (RFC)
New features
Bug fixes
GitHub issue or in this PR)?