Closed vkottler closed 7 years ago
I was getting this warning so I ended up commenting it out.
common/post.c: In function 'print_post_info':
it's hard to get the actual build timestamp to work without generating a header file in a Makefile rule so I'm keeping it to git commit timestamp + committer and hash, plus major and minor version
the problem is if you don't modify the source file that prints post output you won't have an updated timestamp
It's possible to use a pre-processor macro to create a string in C that will be equal to the current time stamp but this requires that the file containing the macro is re-built each time.
This is contingent on the build process, make will only re-compile files that have been touched or modified more recently than the latest build files (which can of course be over written with
make clean
).It might be easiest to somehow use the Makefile to create some file,
timestamp.c
for instance for each build. I'm guessing there are many ways to skin this cat.Here's an example of what I'm looking for: