diff options
author | Simon Ser <contact@emersion.fr> | 2023-02-28 16:24:03 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-04-14 18:34:54 +0200 |
commit | a7b50f6c9cbded863475cc7b60d048636750ef6a (patch) | |
tree | 30e8ef7ba82fb17e780448070a34e22edf6b63bf /include/sway | |
parent | d6915f642858c65c9225a07e96dd65be70806def (diff) |
commands: add printf attribute to cmd_results_new()
And fix the resulting build failures.
Diffstat (limited to 'include/sway')
-rw-r--r-- | include/sway/commands.h | 3 |
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. */ |