From d62bc7f9d4e7df4bdabecd53611fc99783ddeee9 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sun, 13 Mar 2016 13:56:21 -0400 Subject: [PATCH] Console::printFormat is a printf() style function --- src/Console.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Console.hh b/src/Console.hh index f50c83d..ba17b76 100644 --- a/src/Console.hh +++ b/src/Console.hh @@ -62,7 +62,8 @@ struct Console * Write a format string to the current cursor position. Returns the number * of characters printed. */ - int printFormat(const char *format, ...); + int printFormat(const char *format, ...) + __attribute__((format (printf, 2, 3))); void setColor(Color fg, Color bg);