remove unnecessary forward declaration of set_statusline_error

Attributes can be added to function definitions.
Tested with gcc 4.8.2 and clang 3.3
This commit is contained in:
Alexander Kedrik 2014-01-01 19:23:10 +04:00 committed by Michael Stapelberg
parent f78c1ba053
commit f1560e5eb6

View File

@ -81,12 +81,7 @@ static void clear_status_blocks() {
* `draw_bars' is called, the error message text will be drawn on the bar in
* the space allocated for the statusline.
*/
/* forward function declaration is needed to add __attribute__ mechanism which
* helps the compiler understand we are defining a printf wrapper */
static void set_statusline_error(const char *format, ...) __attribute__ ((format (printf, 1, 2)));
static void set_statusline_error(const char *format, ...) {
__attribute__ ((format (printf, 1, 2))) static void set_statusline_error(const char *format, ...) {
clear_status_blocks();
char *message;