-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
warning: implicit declaration of function 'gettimeofday' #24
Comments
Is this really on master? I don't see gettimeofday() in the master branch. In the short run, if you add a line to libminc/CMakeLists.txt on or around line 112:
you will probably be ok, if |
@seanm Please see if the latest develop commit fixes the issue. |
Ugh, indeed, I mean 'develop' branch... (I'm so used to mainline work being done in master.) Your fix works, thanks! |
…ng an octal command line parameter. Created ParseLong() as a standard way of dealing with this.
git master has a warning:
volume_io/Prog_utils/time.c:141:9: warning: implicit declaration of function 'gettimeofday' is invalid in C99 [-Wimplicit-function-declaration]
time.c starts with:
I've confirmed that I don't get into "#if HAVE_SYS_TIME_H" and also confirmed that #including <sys/time.h> fixes the warning.
I'm on OS X and building with CMake. I don't know enough about MINC's build system to know why HAVE_SYS_TIME_H is not true for me.
Help? :)
Thanks.
The text was updated successfully, but these errors were encountered: