aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2023-02-28 16:24:03 +0100
committerFurkan Sahin <furkan-dev@proton.me>2023-02-28 16:24:03 +0100
commit557eb5d56cfa3c5da638f4dd5ceb201ac4134fe5 (patch)
tree30e8ef7ba82fb17e780448070a34e22edf6b63bf /include
parent6a3abe3b29696eb329c022d27eb55452cd11490e (diff)
commands: add printf attribute to cmd_results_new()
And fix the resulting build failures.
Diffstat (limited to 'include')
-rw-r--r--include/sway/commands.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h
index fc6ce22e..3212c2cf 100644
--- a/include/sway/commands.h
+++ b/include/sway/commands.h
@@ -3,6 +3,7 @@
#include <wlr/util/edges.h>
#include "config.h"
+#include "stringop.h"
struct sway_container;
@@ -76,7 +77,7 @@ struct cmd_results *config_commands_command(char *exec);
/**
* Allocates a cmd_results object.
*/
-struct cmd_results *cmd_results_new(enum cmd_status status, const char *error, ...);
+struct cmd_results *cmd_results_new(enum cmd_status status, const char *error, ...) _SWAY_ATTRIB_PRINTF(2, 3);
/**
* Frees a cmd_results object.
*/