diff options
Diffstat (limited to 'contrib/replxx')
-rw-r--r-- | contrib/replxx/include/replxx.h | 3 | ||||
-rw-r--r-- | contrib/replxx/include/replxx.hxx | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/contrib/replxx/include/replxx.h b/contrib/replxx/include/replxx.h index cb1c917b4..4bdad5127 100644 --- a/contrib/replxx/include/replxx.h +++ b/contrib/replxx/include/replxx.h @@ -356,6 +356,9 @@ REPLXX_IMPEXP void replxx_set_state( Replxx*, ReplxxState* state ); * * \param fmt - printf style format. */ +#ifdef __GNUC__ +__attribute__((format(printf, 2, 3))) +#endif REPLXX_IMPEXP int replxx_print( Replxx*, char const* fmt, ... ); /*! \brief Schedule an emulated key press event. diff --git a/contrib/replxx/include/replxx.hxx b/contrib/replxx/include/replxx.hxx index 3fe90e670..1401ea27c 100644 --- a/contrib/replxx/include/replxx.hxx +++ b/contrib/replxx/include/replxx.hxx @@ -370,6 +370,9 @@ public: * * \param fmt - printf style format. */ +#ifdef __GNUC__ + __attribute__((format(printf, 2, 3))) +#endif void print( char const* fmt, ... ); /*! \brief Schedule an emulated key press event. |