l4-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] powerpc/l4/bits/math.h (__l4_lsb): Remove unused variable lsb.


From: Johan Rydberg
Subject: [PATCH] powerpc/l4/bits/math.h (__l4_lsb): Remove unused variable lsb.
Date: Fri, 24 Oct 2003 16:38:17 +0200

Hi,

This little patch fixes a warning in libl4/powerpc.  The warning
is rather painfull, since it shows up in every file that includes
<l4.h>.

2003-10-24  Johan Rydberg  <address@hidden>

        * powerpc/l4/bits/math.h (__l4_lsb): Remove unused
        variable lsb.

Index: math.h
===================================================================
RCS file: /cvsroot/hurd/hurd-l4/libl4/powerpc/l4/bits/math.h,v
retrieving revision 1.2
diff -u -p -r1.2 math.h
--- math.h      25 Sep 2003 12:36:16 -0000      1.2
+++ math.h      24 Oct 2003 14:31:17 -0000
@@ -45,8 +45,6 @@ static inline l4_word_t
 __attribute__((__always_inline__, __const__))
 __l4_lsb (l4_word_t data)
 {
-  l4_word_t lsb;
-
   /* x & -x clears all bits in the word except the LSB set.  */
   return __l4_msb (data & -data);
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]