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
Correct cppcheck errors #6653
Correct cppcheck errors #6653
Conversation
d2dac89
to
e7241d0
Compare
module/zfs/vdev_raidz_math_avx512f.c
Outdated
| @@ -241,6 +241,7 @@ typedef struct v { | |||
| } | |||
|
|
|||
| #define MUL_x2_DEFINE(x) \ | |||
| /* cppcheck-suppress syntaxError */ \ | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this may need to be,
// cppcheck-suppress syntaxError
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. I was trying to figure out a way to get the supression comment to be included in the macro so cppcheck would actually suppress it and not break builds.
@behlendorf and I discussed offline and I'll have another attempted fix shortly.
4544d45
to
3ab5596
Compare
|
For some reason, having |
|
That's unfortunate, then how about we exclude these two configs |
3ab5596
to
ae9d956
Compare
Codecov Report
@@ Coverage Diff @@
## master #6653 +/- ##
=========================================
Coverage ? 66.42%
=========================================
Files ? 215
Lines ? 71600
Branches ? 14199
=========================================
Hits ? 47560
Misses ? 18391
Partials ? 5649
Continue to review full report at Codecov.
|
e051dc0
to
abad7a6
Compare
|
@behlendorf I went ahead and pinged them on their IRC channel and am waiting for a response. I submitted an updated commit to use I also left the two suppressions for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a shame the suppression file didn't work, but practically speaking we can live with this. At least for now. I can extend the comment slightly in the merge to explain that both of these uu_* functions were unused and deadcode and therefore retired.
ZFS buildbot STYLE builder was moved to Ubuntu 17.04 which has a newer version of cppcheck. Handle the new cppcheck errors. uu_* functions removed in this commit were unused and effectively dead code. They are now retired. Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
abad7a6
to
ed775d5
Compare
ZFS buildbot STYLE builder was moved to Ubuntu 17.04 which has a newer version of cppcheck. Handle the new cppcheck errors. uu_* functions removed in this commit were unused and effectively dead code. They are now retired. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov> Closes openzfs#6653
ZFS buildbot STYLE builder was moved to Ubuntu 17.04 which has a newer version of cppcheck. Handle the new cppcheck errors. uu_* functions removed in this commit were unused and effectively dead code. They are now retired. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov> Closes #6653
ZFS buildbot STYLE builder was moved to Ubuntu 17.04 which has a newer version of cppcheck. Handle the new cppcheck errors. uu_* functions removed in this commit were unused and effectively dead code. They are now retired. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov> Closes openzfs#6653
Description
ZFS buildbot STYLE builder was moved to Ubuntu 17.04
which has a newer version of cppcheck. Handle the
new cppcheck errors.
Motivation and Context
Fix STYLE builder.
How Has This Been Tested?
Builds locally on a VM.
Types of changes
Checklist:
Signed-off-by.