]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
Fix compiler warnings, llu lli 64bit (MinGW-w64) 851/head
authorWolfgang Stöggl <c72578@yahoo.de>
Thu, 14 Dec 2017 20:10:11 +0000 (21:10 +0100)
committerWolfgang Stöggl <c72578@yahoo.de>
Thu, 14 Dec 2017 20:10:11 +0000 (21:10 +0100)
commitf79c1d56d5df1acf8988cbd1d5e03c866d51be44
treeca0f6b110c65b7a33cbf7c2bf2386f3dc6edcd97
parentcb8dcece4cb731a41f4fd782b5154bceb358cfef
Fix compiler warnings, llu lli 64bit (MinGW-w64)

- time_t is of type 'long long int', when compiled for 64 bit Windows
  (x86_64-w64-mingw32). Use %10llu instead of %10lu in printf and
  %lli instead of %li in dprintf. Requires __USE_MINGW_ANSI_STDIO 1

- Fixes: rrd_lastupdate.c: In function 'rrd_lastupdate':
  rrd_lastupdate.c:76:18:
  warning: format '%lu' expects argument of type 'long unsigned int',
  but argument 2 has type 'time_t {aka long long int}' [-Wformat=]

- Fixes: rrd_graph_helper.c: In function 'parse_shift':
  rrd_graph_helper.c:1458:13:
  warning: format '%li' expects argument of type 'long int',
  but argument 3 has type 'time_t {aka long long int}' [-Wformat=]
  dprintf("SHIFTBY : %li\n",gdp->shval);
src/rrd_graph_helper.c
src/rrd_lastupdate.c