Skip to content
Commit fe7c36c7 authored by Josh Triplett's avatar Josh Triplett Committed by Michal Marek
Browse files

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: default avatarJosh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent f9d7f777
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment