mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 10:54:35 +03:00
Suppress cppcheck nullPointer error in zfs_write
Newer versions of cppcheck find the potential NULL pointer bug in zfs_write(). The function is difficult to refactor without extensive work, so suppress the potential NULL pointer error which cannot occur for now. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov> Closes #5882
This commit is contained in:
committed by
Brian Behlendorf
parent
c3d0438173
commit
589bb918ef
+2
-1
@@ -62,7 +62,8 @@ lint: cppcheck paxcheck
|
||||
|
||||
cppcheck:
|
||||
@if type cppcheck > /dev/null 2>&1; then \
|
||||
cppcheck --quiet --force --error-exitcode=2 ${top_srcdir}; \
|
||||
cppcheck --inline-suppr --quiet --force --error-exitcode=2 \
|
||||
${top_srcdir}; \
|
||||
fi
|
||||
|
||||
paxcheck:
|
||||
|
||||
Reference in New Issue
Block a user