libsepol: remove unused attribute on a used argument

Since commit 58962eb3d8 ("libsepol,checkpolicy: add binary module
support for xperms") function avrule_read() has been using its "p"
argument even though it was previously marked unused. This makes clang
report:

    policydb.c:3276:7: error: 'p' was marked unused but was used
    [-Werror,-Wused-but-marked-unused].
        if (p->policyvers < MOD_POLICYDB_VERSION_XPERMS_IOCTL) {
            ^

Remove the attribute to make the code consistent again.

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
Nicolas Iooss 2017-05-17 22:53:24 +02:00 committed by Stephen Smalley
parent 5c84f24a17
commit 8fe362f012

View File

@ -3212,8 +3212,7 @@ common_read, class_read, role_read, type_read, user_read,
/************** module reading functions below **************/
static avrule_t *avrule_read(policydb_t * p
__attribute__ ((unused)), struct policy_file *fp)
static avrule_t *avrule_read(policydb_t * p, struct policy_file *fp)
{
unsigned int i;
uint32_t buf[2], len;