Fix warnings.
authorBen Laurie <ben@openssl.org>
Sun, 28 Feb 2010 13:37:15 +0000 (13:37 +0000)
committerBen Laurie <ben@openssl.org>
Sun, 28 Feb 2010 13:37:15 +0000 (13:37 +0000)
crypto/bn/asm/x86_64-gcc.c
crypto/bn/bn_div.c

index 2b2bc1ef60a1aa644a4b5c98a2fd1a197d31f480..b1b8a1109bf7b619710a720a72a9c1e9643aadf2 100644 (file)
@@ -59,6 +59,7 @@
 
 #undef mul
 #undef mul_add
+#undef sqr
 
 /*
  * "m"(a), "+m"(r)     is the way to favor DirectPath ยต-code;
index 7c35545354ee4962c570df2455d4d4a2e1a13022..78c6507113bfb6db41a12cc7fc8a308b669912d5 100644 (file)
@@ -337,7 +337,10 @@ X) -> 0x%08X\n",
                                t2 -= d1;
                                }
 #else /* !BN_LLONG */
-                       BN_ULONG t2l,t2h,ql,qh;
+                       BN_ULONG t2l,t2h;
+#if !defined(BN_UMULT_LOHI) && !defined(BN_UMULT_HIGH)
+                       BN_ULONG ql,qh;
+#endif
 
                        q=bn_div_words(n0,n1,d0);
 #ifdef BN_DEBUG_LEVITTE
@@ -561,7 +564,10 @@ X) -> 0x%08X\n",
                                t2 -= d1;
                                }
 #else /* !BN_LLONG */
-                       BN_ULONG t2l,t2h,ql,qh;
+                       BN_ULONG t2l,t2h;
+#if !defined(BN_UMULT_LOHI) && !defined(BN_UMULT_HIGH)
+                       BN_ULONG ql,qh;
+#endif
 
                        q=bn_div_words(n0,n1,d0);
 #ifdef BN_DEBUG_LEVITTE