more [[gnu::...]] attributes

This commit is contained in:
Max Kellermann
2021-10-13 17:27:16 +02:00
parent 18f64b5fb7
commit 2fbbd540bb
5 changed files with 11 additions and 11 deletions

View File

@@ -30,7 +30,7 @@ extern "C" {
#include <libavutil/log.h>
}
gcc_const
[[gnu::const]]
static LogLevel
FfmpegImportLogLevel(int level) noexcept
{

View File

@@ -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
{