In article <[email protected]> Dag-Erling Smorgrav <[email protected]> writes:
> Author: des > Date: Wed Oct 12 21:45:12 2011 > New Revision: 226329 > URL: http://svn.freebsd.org/changeset/base/226329 > > Log: > Make kdump compile cleanly at WARNS level 6, with one exception: the > ipfilter headers contain a duplicated function declaration. Turn off > -Werror to allow kdump to compile in spite of this. > > It would be neat to be able to turn off -Werror on a file-by-file basis... > Modified: head/usr.bin/kdump/mkioctls > ============================================================================== > --- head/usr.bin/kdump/mkioctls Wed Oct 12 21:38:48 2011 > (r226328) > +++ head/usr.bin/kdump/mkioctls Wed Oct 12 21:45:12 2011 > (r226329) > @@ -15,12 +15,21 @@ LC_ALL=C; export LC_ALL > # XXX should we use an ANSI cpp? > ioctl_includes=` > cd $1 > - find -H -s * -name '*.h' | > + find -H -s * -name '*.h' | grep -v '.*disk.*\.h' | \ > xargs egrep -l \ > '^#[ ]*define[ ]+[A-Za-z_][A-Za-z0-9_]*[ > ]+_IO[^a-z0-9_]' | > awk '{printf("#include <%s>\\\\n", $1)}' > ` > > +case "`uname -m`" in > +*pc98*) > + ioctl_includes="$ioctl_includes#include <sys/diskpc98.h>\\n" > + ;; > +*) > + ioctl_includes="$ioctl_includes#include <sys/diskmbr.h>\\n" > + ;; > +esac > + > awk -v x="$ioctl_includes" 'BEGIN {print x}' | > gcc -E -I$1 -dM -DCOMPAT_43TTY - | > awk -v ioctl_includes="$ioctl_includes" ' > This change breaks cross building. --- TAKAHASHI Yoshihiro <[email protected]> _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "[email protected]"
