Oddity in Makefile.common
|Reported by:||eriktorbjorn||Owned by:||fingolfin|
Latest ScummVM SVN
If I compile ScummVM shortly after rebooting my computer, I get a warning message like this:
make: Warning: File `/dev/null' has modification time 3,4e+03 s in the future
The most likely explanation I've heard is that /dev/null is created, or maybe just accessed, before the system has set the correct time zone.
This in itself is, of course, not a bug in ScummVM. However, I'm curious about this which I found at the end of Makefile.common:
# Include the dependency tracking files. We add /dev/null at the end # of the list to avoid a warning/error if no .d file exist -include $(wildcard $(addsuffix /*.d,$(DEPDIRS))) /dev/null
Is the inclusion of /dev/null actually necessary here? According to the documentation for GNU Make 3.81, the very purpose of using "-include" instead of "include" is to suppress errors and warnings.
Ticket imported from: #1803020. Ticket imported from: bugs/3414.