On Sat, Feb 9, 2013 at 4:10 PM, Sean Bruno <seanwbr...@gmail.com> wrote: > So, this is not a valid warning in our universe and I'd like to silence > it when compiling sys/boot as printf(9) and sprintf(9) supports this > format. How can we silence this warning for the FreeBSD universe? > > ===> efi/libefi (all) > In file included from efinet.c:39: > /home/sbruno/fbsd_head/sys/boot/efi/libefi/../../common/dev_net.c:328:19: > warning: invalid conversion specifier 'D' > [-Wformat-invalid-specifier] > sprintf(temp, "%6D", d->myea, ":");
Here "d->myea" being char pointer, can we not do following instead? : sprintf(temp, "%6s", d->myea, ":"); Hiren _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"