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
591f51f3
Unverified
Commit
591f51f3
authored
5 years ago
by
Rosen Penev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace noreturn attribute with standard C++ version
Signed-off-by:
Rosen Penev
<
rosenp@gmail.com
>
parent
b5d1a090
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
15 additions
and
14 deletions
+15
-14
CommandLine.cxx
src/CommandLine.cxx
+2
-2
ProxyDatabasePlugin.cxx
src/db/plugins/ProxyDatabasePlugin.cxx
+1
-0
Error.hxx
src/lib/dbus/Error.hxx
+1
-1
FatalError.cxx
src/system/FatalError.cxx
+1
-1
FatalError.hxx
src/system/FatalError.hxx
+5
-5
Daemon.hxx
src/unix/Daemon.hxx
+2
-0
Alloc.cxx
src/util/Alloc.cxx
+1
-1
Compiler.h
src/util/Compiler.h
+0
-2
Exception.hxx
src/util/Exception.hxx
+2
-2
No files found.
src/CommandLine.cxx
View file @
591f51f3
...
...
@@ -106,7 +106,7 @@ static constexpr OptionDef option_defs[] = {
static
constexpr
Domain
cmdline_domain
(
"cmdline"
);
gcc_noreturn
[[
noreturn
]]
static
void
version
()
{
printf
(
"Music Player Daemon "
VERSION
" (%s)"
...
...
@@ -272,7 +272,7 @@ static void PrintOption(const OptionDef &opt)
opt
.
GetDescription
());
}
gcc_noreturn
[[
noreturn
]]
static
void
help
()
{
printf
(
"Usage:
\n
"
...
...
This diff is collapsed.
Click to expand it.
src/db/plugins/ProxyDatabasePlugin.cxx
View file @
591f51f3
...
...
@@ -277,6 +277,7 @@ Convert(TagType tag_type) noexcept
return
MPD_TAG_COUNT
;
}
[[
noreturn
]]
static
void
ThrowError
(
struct
mpd_connection
*
connection
)
{
...
...
This diff is collapsed.
Click to expand it.
src/lib/dbus/Error.hxx
View file @
591f51f3
...
...
@@ -71,7 +71,7 @@ public:
return
error
.
message
;
}
gcc_noreturn
[[
noreturn
]]
void
Throw
(
const
char
*
prefix
)
const
;
void
CheckThrow
(
const
char
*
prefix
)
const
;
};
...
...
This diff is collapsed.
Click to expand it.
src/system/FatalError.cxx
View file @
591f51f3
...
...
@@ -36,7 +36,7 @@
static
constexpr
Domain
fatal_error_domain
(
"fatal_error"
);
gcc_noreturn
[[
noreturn
]]
static
void
Abort
()
{
...
...
This diff is collapsed.
Click to expand it.
src/system/FatalError.hxx
View file @
591f51f3
...
...
@@ -29,11 +29,11 @@
/**
* Log the specified message and abort the process.
*/
gcc_noreturn
[[
noreturn
]]
void
FatalError
(
const
char
*
msg
);
gcc_noreturn
[[
noreturn
]]
void
FormatFatalError
(
const
char
*
fmt
,
...);
...
...
@@ -42,19 +42,19 @@ FormatFatalError(const char *fmt, ...);
* fail. Prints the given message, the system error message (from
* errno or GetLastError()) and abort the process.
*/
gcc_noreturn
[[
noreturn
]]
void
FatalSystemError
(
const
char
*
msg
);
#ifdef _WIN32
gcc_noreturn
[[
noreturn
]]
void
FatalSystemError
(
const
char
*
msg
,
DWORD
code
);
#endif
gcc_noreturn
[[
noreturn
]]
void
FormatFatalSystemError
(
const
char
*
fmt
,
...);
...
...
This diff is collapsed.
Click to expand it.
src/unix/Daemon.hxx
View file @
591f51f3
...
...
@@ -45,10 +45,12 @@ daemonize_finish()
* pid file.
*/
#ifndef _WIN32
[[
noreturn
]]
void
daemonize_kill
();
#else
#include <stdexcept>
[[
noreturn
]]
static
inline
void
daemonize_kill
()
{
...
...
This diff is collapsed.
Click to expand it.
src/util/Alloc.cxx
View file @
591f51f3
...
...
@@ -25,7 +25,7 @@
#include <string.h>
#include <unistd.h>
gcc_noreturn
[[
noreturn
]]
static
void
oom
()
{
...
...
This diff is collapsed.
Click to expand it.
src/util/Compiler.h
View file @
591f51f3
...
...
@@ -71,7 +71,6 @@
#define gcc_deprecated __attribute__((deprecated))
#define gcc_may_alias __attribute__((may_alias))
#define gcc_malloc __attribute__((malloc))
#define gcc_noreturn __attribute__((noreturn))
#define gcc_packed __attribute__((packed))
#define gcc_printf(a,b) __attribute__((format(printf, a, b)))
#define gcc_pure __attribute__((pure))
...
...
@@ -101,7 +100,6 @@
#define gcc_deprecated
#define gcc_may_alias
#define gcc_malloc
#define gcc_noreturn
#define gcc_packed
#define gcc_printf(a,b)
#define gcc_pure
...
...
This diff is collapsed.
Click to expand it.
src/util/Exception.hxx
View file @
591f51f3
...
...
@@ -42,14 +42,14 @@
* the std::exception_ptr itself.
*/
template
<
typename
T
>
gcc_noreturn
[[
noreturn
]]
inline
void
ThrowException
(
T
&&
t
)
{
throw
std
::
forward
<
T
>
(
t
);
}
gcc_noreturn
[[
noreturn
]]
inline
void
ThrowException
(
std
::
exception_ptr
ep
)
{
...
...
This diff is collapsed.
Click to expand it.
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