Re: Warnings in asm/string.h in 2.0.33

Kurt Garloff (garloff@kg1.ping.de)
Sat, 28 Feb 1998 10:53:01 +0100


On Thu, Feb 26, 1998 at 10:38:44PM -0500, Jordan Mendelson wrote:
>
> Just pulled down a copy of Egcs snapshot, and go these warnings:
>
> /usr/src/linux/include/asm/string.h: In function `__constant_memcpy':
> /usr/src/linux/include/asm/string.h:443: warning: control reaches end of
> non-void function
> /usr/src/linux/include/asm/string.h: In function
> `__constant_c_and_count_memset'
> /usr/src/linux/include/asm/string.h:594: warning: control reaches end of
> non-void function
>
> They look serious to anyone?

No, just gcc-2.8.0 or egcs-2.91.xx not recognizing, that
switch (c%4) {0: 1: 2: 3:} doesn't need a default and therefore thinks, that
there ist a chance of falling through. Just replace 3: by default: if this
warning is disturbing you.

-- 
Kurt Garloff, Dortmund 
<K.Garloff@ping.de>
PGP key on http://student.physik.uni-dortmund.de/homepages/garloff

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu