aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2016-08-01 17:42:04 +0000
committerBrian Behlendorf <[email protected]>2016-08-02 13:14:47 -0700
commitf3c9cac14355ba45b4ceced4df32c18bfc2518ed (patch)
treea171313cb9124c2ff06e6738615479b6239270af /module
parentefe7978d89f84f08afd9a3bf84a293773b66632d (diff)
Fix gcc -Warray-bounds check for dump_object() in zdb
As of gcc 6.1.1 20160621 (Red Hat 6.1.1-3) an array bounds warnings is detected in the zdb the dump_object() function. The analysis is correct but difficult to interpret because this is implemented as a macro. Rework the ZDB_OT_NAME in to a function and remove the case detected by gcc which is a side effect of the DMU_OT_IS_VALID() macro. zdb.c: In function ‘dump_object’: zdb.c:1931:288: error: array subscript is outside array bounds [-Werror=array-bounds] Signed-off-by: Brian Behlendorf <[email protected]> Signed-off-by: Gvozden Neskovic <[email protected]> Closes #4907
Diffstat (limited to 'module')
0 files changed, 0 insertions, 0 deletions