Move unused function warning to gcc-unused topic branch

The ztest_pattern_match() function is only called from an ASSERT
and needs only to be defined when debugging is enabled.  This
change is to silence a gcc warning and belong with the other
gcc issues.  I'm moving it to the gcc-unused topic branch.
This commit is contained in:
Brian Behlendorf 2010-08-12 21:05:24 -07:00
parent e2f8f607ec
commit 123b6b2f49
1 changed files with 0 additions and 2 deletions

View File

@ -1067,7 +1067,6 @@ ztest_pattern_set(void *buf, uint64_t size, uint64_t value)
*ip++ = value;
}
#ifndef NDEBUG
static boolean_t
ztest_pattern_match(void *buf, uint64_t size, uint64_t value)
{
@ -1080,7 +1079,6 @@ ztest_pattern_match(void *buf, uint64_t size, uint64_t value)
return (diff == 0);
}
#endif
static void
ztest_bt_generate(ztest_block_tag_t *bt, objset_t *os, uint64_t object,