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,14 +21,13 @@
#define MPD_NEIGHBOR_COMMANDS_HXX
#include "CommandResult.hxx"
#include "util/Compiler.h"
struct Instance;
class Client;
class Request;
class Response;
gcc_pure
[[gnu::pure]]
bool
neighbor_commands_available(const Instance &instance) noexcept;

View File

@@ -21,13 +21,12 @@
#define MPD_PLAYLIST_COMMANDS_HXX
#include "CommandResult.hxx"
#include "util/Compiler.h"
class Client;
class Request;
class Response;
gcc_const
[[gnu::const]]
bool
playlist_commands_available() noexcept;