Removed 'unreferenced local variable' problem
authorKeith Vetter <keithv@fusion.com>
Fri, 14 Apr 1995 03:19:19 +0000 (03:19 +0000)
committerKeith Vetter <keithv@fusion.com>
Fri, 14 Apr 1995 03:19:19 +0000 (03:19 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5355 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/asn.1/ChangeLog
src/lib/krb5/asn.1/asn1_k_decode.c

index 4a0494be4bf01bd266b9ece3ec1e14e7a5d046bc..c19deaad261e1a10edad0a120b7401fe88804e28 100644 (file)
@@ -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.
index 2d5703e646fb73b12e439bcfed506be49280457c..159667923d4d9a99c0565f306dc5892b78b1a1de 100644 (file)
@@ -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;