CC src/daemon/collectd-utils_time.o
src/daemon/utils_time.c:153:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
if ((len = strftime(pos, size_left, "%Y-%m-%dT%H:%M:%S", t_tm)) == 0)
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
int format_rfc3339(char *buffer, size_t buffer_size, struct tm const *t_tm,
long nsec, bool print_nano, char const *zone) /* {{{ */
{
- int len;
+ size_t len;
char *pos = buffer;
size_t size_left = buffer_size;