From d1c6c6d9ed490a9cafcd3f1bb40e994c6507e00c Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Thu, 11 Apr 2024 07:02:45 -0400 Subject: [PATCH] minor fixes for compiler warnings --- configure | 2 +- configure.ac | 2 +- src/pam_radius_auth.c | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 479a2d5..357d166 100755 --- a/configure +++ b/configure @@ -6527,7 +6527,7 @@ printf "%s\n" "$ax_cv_cc_weverything_flag" >&6; } -Wno-conversion \ -Wno-covered-switch-default \ -Wno-documentation-unknown-command \ - -Wno-extended-offsetof \ + -Wno-invalid-offsetof \ -Wno-gnu-empty-initializer \ -Wno-gnu-statement-expression \ -Wno-gnu-zero-variadic-macro-arguments \ diff --git a/configure.ac b/configure.ac index 1f1fe84..016f8cd 100644 --- a/configure.ac +++ b/configure.ac @@ -471,7 +471,7 @@ if test "x$developer" = "xyes"; then -Wno-conversion \ -Wno-covered-switch-default \ -Wno-documentation-unknown-command \ - -Wno-extended-offsetof \ + -Wno-invalid-offsetof \ -Wno-gnu-empty-initializer \ -Wno-gnu-statement-expression \ -Wno-gnu-zero-variadic-macro-arguments \ diff --git a/src/pam_radius_auth.c b/src/pam_radius_auth.c index be1d0ed..bcb0508 100644 --- a/src/pam_radius_auth.c +++ b/src/pam_radius_auth.c @@ -246,7 +246,7 @@ static int _pam_parse(int argc, CONST char **argv, radius_conf_t *conf) * @param[in] data Associate some data with the handle pamh * @param[in] error_status used to indicate to the module the sort of action it */ -static void _int_free(UNUSED pam_handle_t *pamh, UNUSED void *data, UNUSED int error_status) +static void _int_free(UNUSED pam_handle_t *pamh, void *data, UNUSED int error_status) { free(data); } @@ -1750,7 +1750,6 @@ PAM_EXTERN int pam_sm_close_session(pam_handle_t *pamh, int flags, int argc, CON #undef PAM_FAIL_CHECK #define PAM_FAIL_CHECK if (retval != PAM_SUCCESS) { return retval; } -#define MAX_PASSWD_TRIES 3 PAM_EXTERN int pam_sm_chauthtok(pam_handle_t *pamh, int flags, int argc, CONST char **argv) {