aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-01-23 16:50:11 +0100
committerMax Kellermann <max@duempel.org>2015-01-23 16:50:31 +0100
commit30cb082932b39c78cebb47f3e03cc6c1f987098c (patch)
tree58ffdd081accf10e1284cdcf8cd15d1e3b82c7f6 /src
parent645554d12f97d0d95a93ab4bddee79bee20dc4b5 (diff)
downloadmpd-30cb082932b39c78cebb47f3e03cc6c1f987098c.tar.gz
mpd-30cb082932b39c78cebb47f3e03cc6c1f987098c.tar.xz
mpd-30cb082932b39c78cebb47f3e03cc6c1f987098c.zip
ClientProcess: cast enum to int before passing to printf()
Fixes gcc5 warning.
Diffstat (limited to 'src')
-rw-r--r--src/ClientProcess.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ClientProcess.cxx b/src/ClientProcess.cxx
index 485e687c9..d62a19466 100644
--- a/src/ClientProcess.cxx
+++ b/src/ClientProcess.cxx
@@ -41,7 +41,7 @@ client_process_command_list(Client &client, bool list_ok,
FormatDebug(client_domain, "process command \"%s\"", cmd);
ret = command_process(client, num++, cmd);
- FormatDebug(client_domain, "command returned %i", ret);
+ FormatDebug(client_domain, "command returned %i", int(ret));
if (ret != CommandResult::OK || client.IsExpired())
break;
else if (list_ok)
@@ -90,7 +90,7 @@ client_process_line(Client &client, char *line)
std::move(cmd_list));
FormatDebug(client_domain,
"[%u] process command "
- "list returned %i", client.num, ret);
+ "list returned %i", client.num, int(ret));
if (ret == CommandResult::CLOSE ||
client.IsExpired())
@@ -126,7 +126,7 @@ client_process_line(Client &client, char *line)
ret = command_process(client, 0, line);
FormatDebug(client_domain,
"[%u] command returned %i",
- client.num, ret);
+ client.num, int(ret));
if (ret == CommandResult::CLOSE ||
client.IsExpired())