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

@@ -26,7 +26,6 @@
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
#include "system/PeriodClock.hxx"
#include "util/Compiler.h"
#include <cstdint>
#include <exception>
@@ -266,20 +265,20 @@ public:
*/
void Configure(const ConfigBlock &block);
gcc_pure
[[gnu::pure]]
const char *GetName() const noexcept;
gcc_pure
[[gnu::pure]]
const char *GetPluginName() const noexcept;
gcc_pure
[[gnu::pure]]
const char *GetLogName() const noexcept;
AudioOutputClient &GetClient() noexcept {
return client;
}
gcc_pure
[[gnu::pure]]
Mixer *GetMixer() const noexcept;
bool IsDummy() const noexcept {
@@ -451,10 +450,10 @@ public:
*
* Caller must lock the mutex.
*/
gcc_pure
[[gnu::pure]]
bool IsChunkConsumed(const MusicChunk &chunk) const noexcept;
gcc_pure
[[gnu::pure]]
bool LockIsChunkConsumed(const MusicChunk &chunk) const noexcept;
/**