Re: [PATCH] Remove more compile warnings in 2.4.0-prerelease

From: Oliver Xymoron (oxymoron@waste.org)
Date: Wed Jan 03 2001 - 23:56:48 EST


On Tue, 2 Jan 2001, Rich Baum wrote:

> Here is a patch that removes more compile warnings from 2.4.0-
> prerelease. I left out files that have been fixed by Alan or myself in
> the ac kernels. I'll add more options to my config tomorrow to try to
> find more of these warnings.

> -#endif I2C_PCF8584_H
> +#endif /* I2C_PCF8584_H */
[etc.]

Here, try this:

find -name "*.[ch]" | xargs perl -ne 'print "$ARGV:$_" if /#endif\s+\w/i'

You'll find a few hundred of them. Then try this (untested):

find -name "*.[ch]" |
 xargs perl -i -pe 's/#endif\s+(\w.*)/#endif \/\* $1 \/\*/i'

..and save yourself quite a bit of tedium.

--
 "Love the dolphins," she advised him. "Write by W.A.S.T.E.."

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jan 07 2001 - 21:00:17 EST