From: Keith Vetter Date: Fri, 14 Apr 1995 03:19:19 +0000 (+0000) Subject: Removed 'unreferenced local variable' problem X-Git-Tag: krb5-1.0-beta5~381 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b35f0fa9410e3c1a078af245c94ea07678a6545e;p=krb5.git Removed 'unreferenced local variable' problem git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5355 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/asn.1/ChangeLog b/src/lib/krb5/asn.1/ChangeLog index 4a0494be4..c19deaad2 100644 --- a/src/lib/krb5/asn.1/ChangeLog +++ b/src/lib/krb5/asn.1/ChangeLog @@ -1,3 +1,7 @@ +Thu Apr 13 20:13:38 1995 Keith Vetter (keithv@fusion.com) + + * asn1_k_decode.c: fixed up 'unreferenced local variable' problems. + Thu Apr 13 15:49:16 1995 Keith Vetter (keithv@fusion.com) * *.[ch]: removed unneeded INTERFACE from non-api functions. diff --git a/src/lib/krb5/asn.1/asn1_k_decode.c b/src/lib/krb5/asn.1/asn1_k_decode.c index 2d5703e64..159667923 100644 --- a/src/lib/krb5/asn.1/asn1_k_decode.c +++ b/src/lib/krb5/asn.1/asn1_k_decode.c @@ -31,7 +31,9 @@ asn1_error_code retval;\ asn1_class class;\ asn1_construction construction;\ asn1_tagnum tagnum;\ -int length,taglen,applen +int length,taglen + +#define unused_var(x) if(0) x=0 #define next_tag()\ retval = asn1_get_tag(&subbuf,&class,&construction,&tagnum,&taglen);\ @@ -271,6 +273,7 @@ asn1_error_code asn1_decode_krb5_flags(buf, val) asn1_octet o; int i; krb5_flags f=0; + unused_var(taglen); retval = asn1_get_tag(buf,&class,&construction,&tagnum,&length); if(retval) return retval; @@ -351,6 +354,7 @@ asn1_error_code asn1_decode_ticket(buf, val) krb5_ticket * val; { setup(); + int applen; apptag(1); { begin_structure(); { krb5_kvno vno;