Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
30cb0829
Commit
30cb0829
authored
Jan 23, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ClientProcess: cast enum to int before passing to printf()
Fixes gcc5 warning.
parent
645554d1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
NEWS
NEWS
+1
-0
ClientProcess.cxx
src/ClientProcess.cxx
+3
-3
No files found.
NEWS
View file @
30cb0829
ver 0.18.23 (not yet released)
* fix gcc 5.0 warnings
ver 0.18.22 (2014/01/14)
* fix clang 3.6 warnings
...
...
src/ClientProcess.cxx
View file @
30cb0829
...
...
@@ -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
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment