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
29baf0c1
Commit
29baf0c1
authored
Jan 15, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log, pcm_convert: added return statements after g_error()
gcc doesn't know that g_error() never returns. Work around the gcc warning.
parent
2151e2ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
log.c
src/log.c
+3
-1
pcm_convert.c
src/pcm_convert.c
+1
-0
No files found.
src/log.c
View file @
29baf0c1
...
@@ -210,9 +210,11 @@ parse_log_level(const char *value, unsigned line)
...
@@ -210,9 +210,11 @@ parse_log_level(const char *value, unsigned line)
return
LOG_LEVEL_SECURE
;
return
LOG_LEVEL_SECURE
;
else
if
(
0
==
strcmp
(
value
,
"verbose"
))
else
if
(
0
==
strcmp
(
value
,
"verbose"
))
return
G_LOG_LEVEL_DEBUG
;
return
G_LOG_LEVEL_DEBUG
;
else
else
{
g_error
(
"unknown log level
\"
%s
\"
at line %u
\n
"
,
g_error
(
"unknown log level
\"
%s
\"
at line %u
\n
"
,
value
,
line
);
value
,
line
);
return
G_LOG_LEVEL_MESSAGE
;
}
}
}
void
log_init
(
bool
verbose
,
bool
use_stdout
)
void
log_init
(
bool
verbose
,
bool
use_stdout
)
...
...
src/pcm_convert.c
View file @
29baf0c1
...
@@ -145,6 +145,7 @@ size_t pcm_convert(const struct audio_format *inFormat,
...
@@ -145,6 +145,7 @@ size_t pcm_convert(const struct audio_format *inFormat,
default:
default:
g_error
(
"cannot convert to %u bit
\n
"
,
outFormat
->
bits
);
g_error
(
"cannot convert to %u bit
\n
"
,
outFormat
->
bits
);
return
0
;
}
}
}
}
...
...
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