On Tue, Oct 15, 2013 at 02:42:22PM +0200, Benno Schulenberg wrote: > > On Tue, Oct 15, 2013, at 13:31, Karel Zak wrote: > > On Tue, Oct 15, 2013 at 11:51:00AM +0200, Benno Schulenberg wrote: > > > Now it compiles fine, with only those five warnings in libfdisk/src/ask.c: > > > «format '%zd' expects argument of type 'signed size_t', but...» and two > > > unused variables in misc-utils/cal.c (when compiled without ncurses). > > > > Thanks! Fixed. > > Well... the warnings for ask.c have gone, but now I get these three for gpt.c: > > libfdisk/src/gpt.c: In function 'gpt_verify_disklabel': > libfdisk/src/gpt.c:1540:7: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'uint64_t' [-Wformat] > libfdisk/src/gpt.c:1540:7: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'uint64_t' [-Wformat] > libfdisk/src/gpt.c:1540:7: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'uint64_t' [-Wformat] I have fixed this in libfdisk branch (git hub) for the next release v2.25, for v2.24 it's tricky as a real fix requires changes to translated strings too. I'll probably do the change after po/ stuff merge rather than cast from uint64_t from long. > And the ones for cal.c are still there: > > misc-utils/cal.c:139:20: warning: 'term' defined but not used [-Wunused-variable] > misc-utils/cal.c:141:13: warning: 'Slen' defined but not used [-Wunused-variable] Ah, so you don't have libncurses as well as libtermcap :-) Fixed. Thanks! Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html