aboutsummaryrefslogtreecommitdiffstats
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
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 '')
-rw-r--r--NEWS1
-rw-r--r--src/ClientProcess.cxx6
2 files changed, 4 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 0105b91b1..cb08d67a2 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
ver 0.18.23 (not yet released)
+* fix gcc 5.0 warnings
ver 0.18.22 (2014/01/14)
* fix clang 3.6 warnings
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())