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

krb5: fix compiler warning #4020

Closed
wants to merge 1 commit into from

Conversation

@MarcelRaad
Copy link
Member

commented Jun 12, 2019

Even though the variable was used in a DEBUGASSERT, GCC 8 warned in
debug mode:

krb5.c:324:17: error: unused variable 'maj' [-Werror=unused-variable]

Just suppress the warning and declare the variable unconditionally
instead of only for DEBUGBUILD (which also missed the check for
HAVE_ASSERT_H).

krb5: fix compiler warning
Even though the variable was used in a DEBUGASSERT, GCC 8 warned in
debug mode:
krb5.c:324:17: error: unused variable 'maj' [-Werror=unused-variable]

Just suppress the warning and declare the variable unconditionally
instead of only for DEBUGBUILD (which also missed the check for
HAVE_ASSERT_H).

Closes

@MarcelRaad MarcelRaad added the build label Jun 12, 2019

@bagder

bagder approved these changes Jun 13, 2019

@MarcelRaad MarcelRaad deleted the MarcelRaad:krb5_unused_variable branch Jun 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.