more [[gnu::...]] attributes
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_NEIGHBOR_ALL_HXX
|
||||
#define MPD_NEIGHBOR_ALL_HXX
|
||||
|
||||
#include "util/Compiler.h"
|
||||
#include "thread/Mutex.hxx"
|
||||
|
||||
#include <forward_list>
|
||||
@@ -74,7 +73,7 @@ public:
|
||||
* Get the combined list of all neighbors from all active
|
||||
* plugins.
|
||||
*/
|
||||
gcc_pure
|
||||
[[gnu::pure]]
|
||||
List GetList() const noexcept;
|
||||
};
|
||||
|
||||
|
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_NEIGHBOR_REGISTRY_HXX
|
||||
#define MPD_NEIGHBOR_REGISTRY_HXX
|
||||
|
||||
#include "util/Compiler.h"
|
||||
|
||||
struct NeighborPlugin;
|
||||
|
||||
/**
|
||||
@@ -30,7 +28,7 @@ struct NeighborPlugin;
|
||||
*/
|
||||
extern const NeighborPlugin *const neighbor_plugins[];
|
||||
|
||||
gcc_pure
|
||||
[[gnu::pure]]
|
||||
const NeighborPlugin *
|
||||
GetNeighborPluginByName(const char *name) noexcept;
|
||||
|
||||
|
Reference in New Issue
Block a user