]> git.baikalelectronics.ru Git - kernel.git/commit
Makefile: Build with -Werror=date-time if the compiler supports it
authorJosh Triplett <josh@joshtriplett.org>
Mon, 23 Dec 2013 21:56:06 +0000 (13:56 -0800)
committerMichal Marek <mmarek@suse.cz>
Mon, 27 Jan 2014 22:14:13 +0000 (23:14 +0100)
commit38048aca1ced7d3653e26cb4b5d6f1b6445c8b1c
treedc6d1f645aeee8a5b1e8799242262f2fdc935ab5
parent883683339c447b61df77a2463d373a1d46ab39e9
Makefile: Build with -Werror=date-time if the compiler supports it

GCC 4.9 and newer have a new warning -Wdate-time, which warns on any use
of __DATE__, __TIME__, or __TIMESTAMP__, which would make the build
non-deterministic.  Now that the kernel does not use any of those
macros, turn on -Werror=date-time if available, to keep it that way.

The kernel already (optionally) records this information at build time
in a single place; other kernel code should not duplicate that.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Makefile