]> git.ipfire.org Git - thirdparty/libvirt.git/commit
examples: Work around mingw printf() weakness
authorEric Blake <eblake@redhat.com>
Tue, 8 Jan 2019 19:46:48 +0000 (13:46 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 8 Jan 2019 20:46:35 +0000 (14:46 -0600)
commit358b6b593ec7e5afbb785be25c8525538f350850
tree56d92874937bff3eb60faf13cc096c2bd145c50c
parent4abd8d01cdd8b0becdb8b37e899b10586d58610f
examples: Work around mingw printf() weakness

mingw lacks %lld and %zu support in printf(); we were getting it
from gnulib. But since commit acf522e8 stopped linking examples
against gnulib, we are getting a build failure due to -Wformat
flagging these strings. Keep the examples standalone, and work
around mingw by using manual casts to types we can portably print.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
examples/domtop/domtop.c
examples/object-events/event-test.c