Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix static warning message. #79

Merged
merged 1 commit into from
Nov 7, 2023
Merged

Conversation

jpereira
Copy link
Contributor

@jpereira jpereira commented Nov 2, 2023

eg:

pam_radius_auth.c:1980:16: warning: no previous prototype for function 'pam_sm_acct_mgmt' [-Wmissing-prototypes]
 1980 | PAM_EXTERN int pam_sm_acct_mgmt(UNUSED pam_handle_t *pamh, UNUSED int flags, UNUSED int argc, UNUSED CONST char **argv)
  1 Fix warning assignment discards qualifiers
      |                ^
pam_radius_auth.c:1980:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
 1980 | PAM_EXTERN int pam_sm_acct_mgmt(UNUSED pam_handle_t *pamh, UNUSED int flags, UNUSED int argc, UNUSED CONST char **argv)
      |            ^
      |            static

eg:

pam_radius_auth.c:1980:16: warning: no previous prototype for function 'pam_sm_acct_mgmt' [-Wmissing-prototypes]
 1980 | PAM_EXTERN int pam_sm_acct_mgmt(UNUSED pam_handle_t *pamh, UNUSED int flags, UNUSED int argc, UNUSED CONST char **argv)
  1 Fix warning assignment discards qualifiers
      |                ^
pam_radius_auth.c:1980:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
 1980 | PAM_EXTERN int pam_sm_acct_mgmt(UNUSED pam_handle_t *pamh, UNUSED int flags, UNUSED int argc, UNUSED CONST char **argv)
      |            ^
      |            static
@alandekok alandekok merged commit 1d734ae into FreeRADIUS:master Nov 7, 2023
10 of 12 checks passed
@jpereira jpereira deleted the fix1 branch November 7, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants