diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-04-06 16:27:42 +0200 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2020-04-11 14:16:30 +0200 |
commit | 26e2a97b1cbb099fae5a7b613ea1edbb342a4061 (patch) | |
tree | 08b9705d1c1805cf4a536e0835205d15be2136a6 /contrib/replxx | |
parent | 765813e908e0f23e98ec6224b0408a152a9d3ec0 (diff) | |
download | rspamd-26e2a97b1cbb099fae5a7b613ea1edbb342a4061.tar.gz rspamd-26e2a97b1cbb099fae5a7b613ea1edbb342a4061.zip |
[Minor] enable Wmissing-format-attribute
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. |