time_t is an integer under 32 bit FreeBSD, generates build warnings
-------------------------------------------------------------------
Key: TS-243
URL: https://issues.apache.org/jira/browse/TS-243
Project: Traffic Server
Issue Type: Bug
Components: Portability
Environment: FreeBSD 7-STABLE on i386
Reporter: James Henderson
Priority: Minor
It is not possible to build Traffic Server using the default configuration.
Since under 32 bit FreeBSD time_t is an int, not a long int, whenever a printf
with format string "%ld" is performed, warnings of the following type are
generated:
HdrTest.cc:544: warning: format '%ld' expects type 'long int', but argument 2
has type 'time_t'
Since -Werror is on by default, the build fails at this point. Disabling
-Werror does allow it to compile of course. I'm not sure what the best way to
fix this is, obviously it works if you format using %d, but that fix would
break it for most other platforms.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.