From d2674bf1fd3b2bcd0111f3b60029ca3529e7d8a5 Mon Sep 17 00:00:00 2001 From: Marc Dionne Date: Sat, 15 Sep 2012 13:53:06 -0400 Subject: [PATCH] rxkad: silence unused variable warnings in v5gen.c Sprinkle AFS_UNUSED attributes where the compiler complains about unused variables. Note that this file is assembled from code generated by the heimdal source. A similar fix exists in the generator code upstream, so when the file is re-generated in the future it should not be necessary to re-apply this. Change-Id: I2ef407428d90157050481d5630f6f22510d65ca3 Reviewed-on: http://gerrit.openafs.org/8122 Tested-by: BuildBot Reviewed-by: Derrick Brashear Reviewed-by: Jeffrey Altman --- src/rxkad/v5gen.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/rxkad/v5gen.c b/src/rxkad/v5gen.c index fe8ab6b19..f1823256d 100644 --- a/src/rxkad/v5gen.c +++ b/src/rxkad/v5gen.c @@ -14,7 +14,7 @@ encode_krb5int32(unsigned char *p, size_t len, const krb5int32 * data, size_t * { size_t ret = 0; size_t l; - int i, e; + int i AFS_UNUSED, e; i = 0; e = der_put_integer(p, len, data, &l); @@ -117,7 +117,7 @@ encode_Ticket(unsigned char *p, size_t len, const Ticket * data, size_t * size) { size_t ret = 0; size_t l; - int i, e; + int i AFS_UNUSED, e; i = 0; /* enc-part */ @@ -460,7 +460,7 @@ encode_AuthorizationDataElement(unsigned char *p, size_t len, const Authorizatio { size_t ret = 0; size_t l; - int i, e; + int i AFS_UNUSED, e; i = 0; /* ad-data */ @@ -691,7 +691,7 @@ encode_EncryptedData(unsigned char *p, size_t len, const EncryptedData * data, s { size_t ret = 0; size_t l; - int i, e; + int i AFS_UNUSED, e; i = 0; /* cipher */ @@ -1463,7 +1463,7 @@ encode_HostAddress(unsigned char *p, size_t len, const HostAddress * data, size_ { size_t ret = 0; size_t l; - int i, e; + int i AFS_UNUSED, e; i = 0; /* address */ @@ -1890,7 +1890,7 @@ encode_EncTicketPart(unsigned char *p, size_t len, const EncTicketPart * data, s { size_t ret = 0; size_t l; - int i, e; + int i AFS_UNUSED, e; i = 0; /* authorization-data */ @@ -2692,7 +2692,7 @@ encode_KerberosTime(unsigned char *p, size_t len, const KerberosTime * data, siz { size_t ret = 0; size_t l; - int i, e; + int i AFS_UNUSED, e; i = 0; e = der_put_generalized_time(p, len, data, &l); @@ -2795,7 +2795,7 @@ encode_TransitedEncoding(unsigned char *p, size_t len, const TransitedEncoding * { size_t ret = 0; size_t l; - int i, e; + int i AFS_UNUSED, e; i = 0; /* contents */ @@ -3026,7 +3026,7 @@ encode_EncryptionKey(unsigned char *p, size_t len, const EncryptionKey * data, s { size_t ret = 0; size_t l; - int i, e; + int i AFS_UNUSED, e; i = 0; /* keyvalue */ @@ -3257,7 +3257,7 @@ encode_TicketFlags(unsigned char *p, size_t len, const TicketFlags * data, size_ { size_t ret = 0; size_t l; - int i, e; + int i AFS_UNUSED, e; i = 0; { @@ -3519,7 +3519,7 @@ encode_Realm(unsigned char *p, size_t len, const Realm * data, size_t * size) { size_t ret = 0; size_t l; - int i, e; + int i AFS_UNUSED, e; i = 0; e = der_put_general_string(p, len, data, &l); @@ -3627,7 +3627,7 @@ encode_ENCTYPE(unsigned char *p, size_t len, const ENCTYPE * data, size_t * size { size_t ret = 0; size_t l; - int i, e; + int i AFS_UNUSED, e; i = 0; { @@ -3741,7 +3741,7 @@ encode_NAME_TYPE(unsigned char *p, size_t len, const NAME_TYPE * data, size_t * { size_t ret = 0; size_t l; - int i, e; + int i AFS_UNUSED, e; i = 0; { -- 2.39.5