Skip to content
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

Fix compilation warning #66

Merged
merged 1 commit into from
Jan 20, 2020
Merged

Fix compilation warning #66

merged 1 commit into from
Jan 20, 2020

Conversation

andronat
Copy link
Contributor

GCC 9 was complaining with the following

time.c: In function ‘main’:
time.c:11:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘time_t’ {aka ‘long int’} [-Wformat=]
   11 |  printf("Time: %d\n", time(0));
      |                ~^     ~~~~~~~
      |                 |     |
      |                 int   time_t {aka long int}
      |                %ld

@zardus zardus merged commit 65180c8 into zardus:master Jan 20, 2020
@zardus
Copy link
Owner

zardus commented Jan 20, 2020

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants