]> granicus.if.org Git - curl/commit
krb5: fix compiler warning
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Wed, 12 Jun 2019 21:07:07 +0000 (23:07 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Thu, 13 Jun 2019 09:08:53 +0000 (11:08 +0200)
commit74f911d4635a2f120e9afee2810fa62a41f18bce
treedf561da2b4ce502c1dc772e39c5b87b8bee01c25
parent9dd731c94e29e5422c5bd2811219a0987d4aeb91
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 https://github.com/curl/curl/pull/4020
lib/krb5.c