Re: [PATCH] More compile warning fixes for 2.4.0

From: Paul Gortmaker (p_gortmaker@yahoo.com)
Date: Sun Jan 07 2001 - 07:41:57 EST


Rich Baum wrote:
>
> Here's a patch that fixes more of the compile warnings with gcc
> 2.97.

[...]

> -#endif __SNMP__
> +#endif /* __SNMP__ */

Might as well automate it for all of these endif ones through the entire
kernel (assuming you already haven't of course).

Paul.
  -----------------------------8<-----------8<------------------------
#!/bin/bash
for i in `find . -type f -name '*.[chS]'`
do
        grep -q '^#endif [A-Za-z0-9_]' $i 2>/dev/null
        if [ $? == 0 ]; then
                mv $i $i~
                sed 's/^#endif \([A-Za-z0-9_]\+$\)/#endif \/\* \1 \*\//'<$i~>$i
        fi
done
  -----------------------------8<-----------8<------------------------

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

-
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:28 EST