Skip to content

Bug 4822: Build failure (-Wformat) where time_t is not long int#158

Merged
rousskov merged 1 commit intosquid-cache:masterfrom
measurement-factory:bug4822-printf-timet
Feb 24, 2018
Merged

Bug 4822: Build failure (-Wformat) where time_t is not long int#158
rousskov merged 1 commit intosquid-cache:masterfrom
measurement-factory:bug4822-printf-timet

Conversation

@rousskov
Copy link
Contributor

There is no good way to printf() time_t. AFAICT, Squid usually just
casts to (long) int. TODO: Use C++ streams (with manipulators) instead.

There is no good way to printf() time_t. AFAICT, Squid usually just
casts to (long) int. TODO: Use C++ streams (with manipulators) instead.
@rousskov
Copy link
Contributor Author

Disclaimer: I have not tested this change beyond compilation.

@rousskov
Copy link
Contributor Author

Jenkins d-centos-7 tests failed due to unrelated problems discussed elsewhere. We should ignore those two failures here for the reasons already discussed.

Copy link
Contributor

@yadij yadij left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Danilo G. Baio 2018-02-22 19:45:50 UTC
"Building fine with this patch, thanks!"

@rousskov rousskov merged commit 5ef3cbb into squid-cache:master Feb 24, 2018
@rousskov rousskov deleted the bug4822-printf-timet branch February 24, 2018 00:33
squidadm pushed a commit to squidadm/squid that referenced this pull request Feb 24, 2018
…d-cache#158)

There is no good way to printf() time_t. AFAICT, Squid usually just
casts to (long) int. TODO: Use C++ streams (with manipulators) instead.
yadij pushed a commit that referenced this pull request Feb 26, 2018
There is no good way to printf() time_t. AFAICT, Squid usually just
casts to (long) int. TODO: Use C++ streams (with manipulators) instead.
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