diff options
author | Michael Brown | 2008-10-10 19:41:24 +0200 |
---|---|---|
committer | Michael Brown | 2008-10-10 19:41:24 +0200 |
commit | 2e812235f41c9dc3e11fef42a62f4693c0cf639a (patch) | |
tree | 2d90b48749c80c0c00964866a68463b91bf3c8e5 /src/include | |
parent | [efi] Add EFI headers from the EFI Development Kit (edk2) (diff) | |
download | ipxe-2e812235f41c9dc3e11fef42a62f4693c0cf639a.tar.gz ipxe-2e812235f41c9dc3e11fef42a62f4693c0cf639a.tar.xz ipxe-2e812235f41c9dc3e11fef42a62f4693c0cf639a.zip |
[makefile] Add -Wformat-nonliteral as an extra warning category
-Wformat-nonliteral is not enabled by -Wall and needs to be explicitly
specified.
Modified the few files that use nonliteral format strings to work with
this new setting in place.
Inspired by a patch from Carl Karsten <carl@personnelware.com> and an
identical patch from Rorschach <r0rschach@lavabit.com>.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gpxe/xfer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/gpxe/xfer.h b/src/include/gpxe/xfer.h index 9575bf69..e592fa38 100644 --- a/src/include/gpxe/xfer.h +++ b/src/include/gpxe/xfer.h @@ -149,8 +149,8 @@ extern int xfer_deliver_raw ( struct xfer_interface *xfer, const void *data, size_t len ); extern int xfer_vprintf ( struct xfer_interface *xfer, const char *format, va_list args ); -extern int xfer_printf ( struct xfer_interface *xfer, - const char *format, ... ); +extern int __attribute__ (( format ( printf, 2, 3 ) )) +xfer_printf ( struct xfer_interface *xfer, const char *format, ... ); extern int xfer_seek ( struct xfer_interface *xfer, off_t offset, int whence ); extern void ignore_xfer_close ( struct xfer_interface *xfer, int rc ); |