From b35f0fa9410e3c1a078af245c94ea07678a6545e Mon Sep 17 00:00:00 2001 From: Keith Vetter Date: Fri, 14 Apr 1995 03:19:19 +0000 Subject: [PATCH] Removed 'unreferenced local variable' problem git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5355 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/asn.1/ChangeLog | 4 ++++ src/lib/krb5/asn.1/asn1_k_decode.c | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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; -- 2.26.2