]> www.infradead.org Git - mtd-utils.git/commit
make sure compiler supports warning flags
authorMike Frysinger <vapier@gentoo.org>
Thu, 26 Feb 2009 08:30:06 +0000 (03:30 -0500)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 27 Feb 2009 18:38:55 +0000 (20:38 +0200)
commita2d010f8fca904fffa3c6e5a5d148cc96a37a08a
treee27779a22c717dede2a714d87c248e77b7f15edd
parent48e82adf39ba4c93068bc22237a2725a68a8f6c6
make sure compiler supports warning flags

Some compilers (like gcc-3.3) don't support all the newer -W flags that we
are using.  So import the compiler check found in the kernel and test each
flag we add.  The := is important so we only do the compiler tests once
per `make` rather than every time we compile a file.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
common.mk