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
2fbbd540
Commit
2fbbd540
authored
Oct 13, 2021
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more [[gnu::...]] attributes
parent
18f64b5f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
CommandError.cxx
src/command/CommandError.cxx
+5
-5
InotifyQueue.cxx
src/db/update/InotifyQueue.cxx
+1
-1
LogCallback.cxx
src/lib/ffmpeg/LogCallback.cxx
+1
-1
Discovery.cxx
src/lib/upnp/Discovery.cxx
+2
-2
UpnpNeighborPlugin.cxx
src/neighbor/plugins/UpnpNeighborPlugin.cxx
+2
-2
No files found.
src/command/CommandError.cxx
View file @
2fbbd540
...
...
@@ -27,8 +27,7 @@
#include <system_error>
gcc_const
static
enum
ack
static
constexpr
enum
ack
ToAck
(
PlaylistResult
result
)
noexcept
{
switch
(
result
)
{
...
...
@@ -63,8 +62,8 @@ ToAck(PlaylistResult result) noexcept
}
#ifdef ENABLE_DATABASE
gcc_const
static
enum
ack
static
constexpr
enum
ack
ToAck
(
DatabaseErrorCode
code
)
noexcept
{
switch
(
code
)
{
...
...
@@ -78,9 +77,10 @@ ToAck(DatabaseErrorCode code) noexcept
return
ACK_ERROR_UNKNOWN
;
}
#endif
gcc_pure
[[
gnu
::
pure
]]
static
enum
ack
ToAck
(
const
std
::
exception_ptr
&
ep
)
noexcept
{
...
...
src/db/update/InotifyQueue.cxx
View file @
2fbbd540
...
...
@@ -69,7 +69,7 @@ InotifyQueue::OnDelay() noexcept
}
}
gcc_pure
[[
gnu
::
pure
]]
static
bool
path_in
(
const
char
*
path
,
const
char
*
possible_parent
)
noexcept
{
...
...
src/lib/ffmpeg/LogCallback.cxx
View file @
2fbbd540
...
...
@@ -30,7 +30,7 @@ extern "C" {
#include <libavutil/log.h>
}
gcc_const
[[
gnu
::
const
]]
static
LogLevel
FfmpegImportLogLevel
(
int
level
)
noexcept
{
...
...
src/lib/upnp/Discovery.cxx
View file @
2fbbd540
...
...
@@ -99,7 +99,7 @@ static constexpr char ContentDirectorySType[] = "urn:schemas-upnp-org:service:Co
// We don't include a version in comparisons, as we are satisfied with
// version 1
gcc_pure
[[
gnu
::
pure
]]
static
bool
isCDService
(
const
char
*
st
)
noexcept
{
...
...
@@ -110,7 +110,7 @@ isCDService(const char *st) noexcept
// The type of device we're asking for in search
static
constexpr
char
MediaServerDType
[]
=
"urn:schemas-upnp-org:device:MediaServer:1"
;
gcc_pure
[[
gnu
::
pure
]]
static
bool
isMSDevice
(
const
char
*
st
)
noexcept
{
...
...
src/neighbor/plugins/UpnpNeighborPlugin.cxx
View file @
2fbbd540
...
...
@@ -40,12 +40,12 @@ class UpnpNeighborExplorer final
Server
(
const
Server
&
)
=
delete
;
Server
&
operator
=
(
const
Server
&
)
=
delete
;
gcc_pure
[[
gnu
::
pure
]]
bool
operator
==
(
const
Server
&
other
)
const
noexcept
{
return
name
==
other
.
name
;
}
[[
nodiscard
]]
gcc_pure
[[
nodiscard
]]
[[
gnu
::
pure
]]
NeighborInfo
Export
()
const
noexcept
{
return
{
"smb://"
+
name
+
"/"
,
comment
};
}
...
...
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