mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 10:07:12 +00:00
pam_apparmor: fix unused parameter warnings
Tag unused parameters so the -Wunused-parameter won't complain about them. MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/561 Signed-off-by: John Johansen <john.johansen@canonical.com> Acked-by: Steve Beattie <sbeattie@ubuntu.com>
This commit is contained in:
parent
1305dfcecf
commit
b32501003a
@ -45,6 +45,10 @@
|
|||||||
|
|
||||||
int debug_flag = 0;
|
int debug_flag = 0;
|
||||||
|
|
||||||
|
#ifndef unused_
|
||||||
|
#define unused_ __attribute__ ((unused))
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct config default_config = {
|
static struct config default_config = {
|
||||||
.hat_type[0] = eGroupname,
|
.hat_type[0] = eGroupname,
|
||||||
.hat_type[1] = eDefault,
|
.hat_type[1] = eDefault,
|
||||||
@ -54,14 +58,14 @@ static struct config default_config = {
|
|||||||
/* --- session management functions (only) --- */
|
/* --- session management functions (only) --- */
|
||||||
|
|
||||||
PAM_EXTERN int
|
PAM_EXTERN int
|
||||||
pam_sm_close_session (pam_handle_t *pamh, int flags,
|
pam_sm_close_session (unused_ pam_handle_t *pamh, unused_ int flags,
|
||||||
int argc, const char **argv)
|
unused_ int argc, unused_ const char **argv)
|
||||||
{
|
{
|
||||||
return PAM_IGNORE;
|
return PAM_IGNORE;
|
||||||
}
|
}
|
||||||
|
|
||||||
PAM_EXTERN
|
PAM_EXTERN
|
||||||
int pam_sm_open_session(pam_handle_t *pamh, int flags,
|
int pam_sm_open_session(pam_handle_t *pamh, unused_ int flags,
|
||||||
int argc, const char **argv)
|
int argc, const char **argv)
|
||||||
{
|
{
|
||||||
int fd, retval, pam_retval = PAM_SUCCESS;
|
int fd, retval, pam_retval = PAM_SUCCESS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user