HomeFreeBSD

Suppress static analyzer warning in dmu_objset_create_impl_dnstats()

Description

Suppress static analyzer warning in dmu_objset_create_impl_dnstats()

ae7e7006500ca37c471dd625cd5cbfc590b49885 added an assertion to suppress
a complaint from Clang's static analyzer. Unfortunately, it missed
another way for Clang to complain about this function. This adds another
assertion to handle that.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14575

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Mar 6 2023, 4:15 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Mar 8 2023, 9:52 PM
Parents
rG703283fabd14: Linux: Fix octal detection in define_ddi_strtox()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG08641d900785: Suppress static analyzer warning in dmu_objset_create_impl_dnstats() (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Mar 8 2023, 9:52 PM