summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2008-10-10 19:41:24 +0200
committerMichael Brown2008-10-10 19:41:24 +0200
commit2e812235f41c9dc3e11fef42a62f4693c0cf639a (patch)
tree2d90b48749c80c0c00964866a68463b91bf3c8e5 /src/include
parent[efi] Add EFI headers from the EFI Development Kit (edk2) (diff)
downloadipxe-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.h4
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 );