aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2023-02-28 16:27:44 +0100
committerLibravatar Simon Ser <contact@emersion.fr>2023-04-14 18:34:54 +0200
commit96cebb4fe65021660e467a2cda8c9c5c4c29b699 (patch)
tree1ee44b9112d13a2edc43ababaec6142ccd1a003b
parentcommands: add printf attribute to cmd_results_new() (diff)
downloadsway-96cebb4fe65021660e467a2cda8c9c5c4c29b699.tar.gz
sway-96cebb4fe65021660e467a2cda8c9c5c4c29b699.tar.zst
sway-96cebb4fe65021660e467a2cda8c9c5c4c29b699.zip
config: add printf attribute to config_add_swaynag_warning()
-rw-r--r--include/sway/config.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index 8415627b..aa58da53 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -12,6 +12,7 @@
12#include "../include/config.h" 12#include "../include/config.h"
13#include "gesture.h" 13#include "gesture.h"
14#include "list.h" 14#include "list.h"
15#include "stringop.h"
15#include "swaynag.h" 16#include "swaynag.h"
16#include "tree/container.h" 17#include "tree/container.h"
17#include "sway/input/tablet.h" 18#include "sway/input/tablet.h"
@@ -625,7 +626,7 @@ void run_deferred_bindings(void);
625/** 626/**
626 * Adds a warning entry to the swaynag instance used for errors. 627 * Adds a warning entry to the swaynag instance used for errors.
627 */ 628 */
628void config_add_swaynag_warning(char *fmt, ...); 629void config_add_swaynag_warning(char *fmt, ...) _SWAY_ATTRIB_PRINTF(1, 2);
629 630
630/** 631/**
631 * Free config struct 632 * Free config struct