]> granicus.if.org Git - transmission/commitdiff
(libT) fix a compiler warning.
authorCharles Kerr <charles@transmissionbt.com>
Wed, 26 Nov 2008 18:54:35 +0000 (18:54 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Wed, 26 Nov 2008 18:54:35 +0000 (18:54 +0000)
libtransmission/bandwidth.c

index 062ed8047913088f68537130891a0baad7130a76..6d2c8acfad2e84944ab8c62b48d6d213f303bf72 100644 (file)
@@ -239,7 +239,8 @@ tr_bandwidthIsLimited( const tr_bandwidth  * b,
     return b->band[dir].isLimited != 0;
 }
 
-#if 1
+#if 0
+#warning do not check the code in with this enabled
 #define DEBUG_DIRECTION TR_UP
 #endif
 
@@ -248,8 +249,6 @@ tr_bandwidthAllocate( tr_bandwidth  * b,
                       tr_direction    dir,
                       int             period_msec )
 {
-    double clamped = 0;
-
     assert( isBandwidth( b ) );
     assert( isDirection( dir ) );