From 3bca50f4229ea9c9bf9d3d7a298746ee1439ce73 Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Tue, 4 Dec 2012 17:50:08 -0800 Subject: [PATCH] AP_HAL: BetterStream removes printf attribute from _printf_P --- libraries/AP_HAL/utility/BetterStream.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_HAL/utility/BetterStream.h b/libraries/AP_HAL/utility/BetterStream.h index 93682280f7..f19ae0dd07 100644 --- a/libraries/AP_HAL/utility/BetterStream.h +++ b/libraries/AP_HAL/utility/BetterStream.h @@ -35,8 +35,8 @@ public: virtual void println_P(const prog_char_t *) = 0; virtual void printf(const char *, ...) __attribute__ ((format(__printf__, 2, 3))) = 0; - virtual void _printf_P(const prog_char *, ...) - __attribute__ ((format(__printf__, 2, 3))) = 0; + /* No format checking on printf_P: can't currently support that on AVR */ + virtual void _printf_P(const prog_char *, ...) = 0; #define printf_P(fmt, ...) _printf_P((const prog_char *)fmt, ## __VA_ARGS__)