From a75521bfe037d327065dd9efbdffc3b3ddafad45 Mon Sep 17 00:00:00 2001 From: Markus Sattler Date: Fri, 22 May 2015 10:46:56 +0200 Subject: [PATCH] add __attribute__ format to Print::printf compiler now gives warnings by miss usage of printf --- cores/esp8266/Print.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp8266/Print.h b/cores/esp8266/Print.h index 7366174f5..a0df267c1 100644 --- a/cores/esp8266/Print.h +++ b/cores/esp8266/Print.h @@ -63,7 +63,7 @@ class Print { return write((const uint8_t *) buffer, size); } - size_t printf(const char * format, ...); + size_t printf(const char * format, ...) __attribute__ ((format (printf, 2, 3))); size_t print(const __FlashStringHelper *); size_t print(const String &); size_t print(const char[]);