svn commit: r226329 - head/usr.bin/kdump
TAKAHASHI Yoshihiro
nyan at FreeBSD.org
Thu Oct 13 13:14:48 UTC 2011
In article <201110122145.p9CLjCcm085538 at svn.freebsd.org>
Dag-Erling Smorgrav <des at freebsd.org> 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 <nyan at FreeBSD.org>
More information about the svn-src-all
mailing list