use [[gnu::...]] attributes
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
|
||||
#include "input/Ptr.hxx"
|
||||
#include "thread/Mutex.hxx"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#include <string_view>
|
||||
|
||||
@@ -104,19 +103,19 @@ struct PlaylistPlugin {
|
||||
/**
|
||||
* Does the plugin announce the specified URI scheme?
|
||||
*/
|
||||
gcc_pure gcc_nonnull_all
|
||||
[[gnu::pure]]
|
||||
bool SupportsScheme(std::string_view scheme) const noexcept;
|
||||
|
||||
/**
|
||||
* Does the plugin announce the specified file name suffix?
|
||||
*/
|
||||
gcc_pure gcc_nonnull_all
|
||||
[[gnu::pure]]
|
||||
bool SupportsSuffix(std::string_view suffix) const noexcept;
|
||||
|
||||
/**
|
||||
* Does the plugin announce the specified MIME type?
|
||||
*/
|
||||
gcc_pure gcc_nonnull_all
|
||||
[[gnu::pure]]
|
||||
bool SupportsMimeType(std::string_view mime_type) const noexcept;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#define MPD_PLAYLIST_STREAM_HXX
|
||||
|
||||
#include "thread/Mutex.hxx"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -18,11 +17,10 @@ class Path;
|
||||
* @param path the path of the playlist file
|
||||
* @return a playlist, or nullptr on error
|
||||
*/
|
||||
gcc_nonnull_all
|
||||
std::unique_ptr<SongEnumerator>
|
||||
playlist_open_path(Path path, Mutex &mutex);
|
||||
|
||||
gcc_nonnull_all
|
||||
[[gnu::nonnull]]
|
||||
std::unique_ptr<SongEnumerator>
|
||||
playlist_open_remote(const char *uri, Mutex &mutex);
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
#include "song/DetachedSong.hxx"
|
||||
#include "tag/Builder.hxx"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
@@ -108,7 +107,7 @@ public:
|
||||
std::unique_ptr<DetachedSong> Get() noexcept;
|
||||
|
||||
private:
|
||||
gcc_pure
|
||||
[[gnu::pure]]
|
||||
TagBuilder *GetCurrentTag() noexcept;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user