diff options
| author | Rosen Penev | 2019-12-07 21:52:49 +0000 |
|---|---|---|
| committer | Petr Štetiar | 2019-12-07 22:14:01 +0000 |
| commit | 03dfbbe6fef7639fd20a2b2e0fd97df2ff8e6516 (patch) | |
| tree | de61ec191c8a686ffbf36f58a3a7cb96942587e3 | |
| parent | 8dd50da20de0ece65118b2b4b71f8df8ac3a1f6d (diff) | |
| download | uci-03dfbbe6fef7639fd20a2b2e0fd97df2ff8e6516.tar.gz | |
cli: fix format string clang-10 warning
Fixes:
cli.c:196:19: error: format string is not a string literal [-Werror=format-nonliteral]
Signed-off-by: Rosen Penev <rosenp@gmail.com>
[split into separate commit]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
| -rw-r--r-- | cli.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -185,6 +185,7 @@ static void cli_perror(void) uci_perror(ctx, appname); } +__attribute__((format(printf, 1, 2))) static void cli_error(const char *fmt, ...) { va_list ap; |