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

@@ -21,7 +21,6 @@
#define MPD_INPUT_CACHE_MANAGER_HXX
#include "thread/Mutex.hxx"
#include "util/Compiler.h"
#include <boost/intrusive/set.hpp>
#include <boost/intrusive/list.hpp>
@@ -43,15 +42,15 @@ class InputCacheManager {
size_t total_size = 0;
struct ItemCompare {
gcc_pure
[[gnu::pure]]
bool operator()(const InputCacheItem &a,
const char *b) const noexcept;
gcc_pure
[[gnu::pure]]
bool operator()(const char *a,
const InputCacheItem &b) const noexcept;
gcc_pure
[[gnu::pure]]
bool operator()(const InputCacheItem &a,
const InputCacheItem &b) const noexcept;
};
@@ -74,7 +73,7 @@ public:
void Flush() noexcept;
gcc_pure
[[gnu::pure]]
bool Contains(const char *uri) noexcept;
/**