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

This commit is contained in:
Max Kellermann
2021-10-13 11:28:04 +02:00
parent 1c4b484a56
commit f510564d9d
135 changed files with 361 additions and 514 deletions

View File

@@ -55,7 +55,7 @@ public:
offset_type offset) override;
};
gcc_const
[[gnu::const]]
static inline bool
input_ffmpeg_supported() noexcept
{

View File

@@ -77,7 +77,7 @@ public:
return format_id;
}
gcc_pure
[[gnu::pure]]
CurlGlobal &GetCurl() noexcept;
void AddLoginHandler(QobuzSessionHandler &h) noexcept;

View File

@@ -166,7 +166,7 @@ FinishQobuzInput() noexcept
delete qobuz_client;
}
gcc_pure
[[gnu::pure]]
static const char *
ExtractQobuzTrackId(const char *uri)
{