]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: fix compilation of selinux on RHEL 5
authorEric Blake <eblake@redhat.com>
Tue, 12 Feb 2013 00:12:25 +0000 (17:12 -0700)
committerEric Blake <eblake@redhat.com>
Tue, 12 Feb 2013 00:12:25 +0000 (17:12 -0700)
On RHEL 5, I got:

security/security_selinux.c: In function 'getContext':
security/security_selinux.c:971: warning: unused parameter 'mgr' [-Wunused-parameter]

* src/security/security_selinux.c (getContext): Mark potentially
unused parameter.

src/security/security_selinux.c

index 2a9333cf8805db3e9f6019c931778dd2b5885e2a..8173b20667086f15dab9b436e926e74c008006b6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2008-2012 Red Hat, Inc.
+ * Copyright (C) 2008-2013 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -968,7 +968,7 @@ virSecuritySELinuxFSetFilecon(int fd, char *tcon)
 
 /* Set fcon to the appropriate label for path and mode, or return -1.  */
 static int
-getContext(virSecurityManagerPtr mgr,
+getContext(virSecurityManagerPtr mgr ATTRIBUTE_UNUSED,
            const char *newpath, mode_t mode, security_context_t *fcon)
 {
 #if HAVE_SELINUX_LABEL_H