lkml.org 
[lkml]   [2001]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] More compile warning fixes for 2.4.0

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/

\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.094 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site