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:
parent
f78c1ba053
commit
f1560e5eb6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue