use [[gnu::...]] attributes
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
#include "ObjectManager.hxx"
|
||||
#include "util/SpanCast.hxx"
|
||||
#include "util/StringAPI.hxx"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#include <functional>
|
||||
#include <stdexcept>
|
||||
@@ -15,7 +14,7 @@
|
||||
namespace UDisks2 {
|
||||
|
||||
template<typename I>
|
||||
gcc_pure
|
||||
[[gnu::pure]]
|
||||
static const char *
|
||||
CheckString(I &&i) noexcept
|
||||
{
|
||||
@@ -26,7 +25,7 @@ CheckString(I &&i) noexcept
|
||||
}
|
||||
|
||||
template<typename I>
|
||||
gcc_pure
|
||||
[[gnu::pure]]
|
||||
static std::string_view
|
||||
CheckRecursedByteArrayToString(I &&i) noexcept
|
||||
{
|
||||
@@ -38,7 +37,7 @@ CheckRecursedByteArrayToString(I &&i) noexcept
|
||||
}
|
||||
|
||||
template<typename I>
|
||||
gcc_pure
|
||||
[[gnu::pure]]
|
||||
static std::string_view
|
||||
CheckByteArrayToString(I &&i) noexcept
|
||||
{
|
||||
@@ -49,7 +48,7 @@ CheckByteArrayToString(I &&i) noexcept
|
||||
}
|
||||
|
||||
template<typename I>
|
||||
gcc_pure
|
||||
[[gnu::pure]]
|
||||
static std::string_view
|
||||
CheckByteArrayArrayFrontToString(I &&i) noexcept
|
||||
{
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include "Lease.hxx"
|
||||
#include "Callback.hxx"
|
||||
#include "event/InjectEvent.hxx"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#ifndef MPD_SQLITE_UTIL_HXX
|
||||
#define MPD_SQLITE_UTIL_HXX
|
||||
|
||||
#include "util/Compiler.h"
|
||||
#include "Error.hxx"
|
||||
|
||||
#include <sqlite3.h>
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
#ifndef MPD_UPNP_ACTION_HXX
|
||||
#define MPD_UPNP_ACTION_HXX
|
||||
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#include <upnptools.h>
|
||||
|
||||
static constexpr unsigned
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
#include "FlacIOHandle.hxx"
|
||||
#include "Log.hxx"
|
||||
#include "util/Compiler.h"
|
||||
#include "system/Error.hxx"
|
||||
|
||||
#include <cerrno>
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
#ifndef MPD_FLAC_METADATA_ITERATOR_HXX
|
||||
#define MPD_FLAC_METADATA_ITERATOR_HXX
|
||||
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#include <FLAC/metadata.h>
|
||||
|
||||
class FlacMetadataIterator {
|
||||
@@ -31,7 +29,7 @@ public:
|
||||
return ::FLAC__metadata_iterator_next(iterator);
|
||||
}
|
||||
|
||||
gcc_pure
|
||||
[[gnu::pure]]
|
||||
FLAC__StreamMetadata *GetBlock() noexcept {
|
||||
return ::FLAC__metadata_iterator_get_block(iterator);
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ flac_scan_comments(const FLAC__StreamMetadata_VorbisComment *comment,
|
||||
ScanVorbisComment(ToStringView(comment->comments[i]), handler);
|
||||
}
|
||||
|
||||
gcc_pure
|
||||
[[gnu::pure]]
|
||||
static inline SongTime
|
||||
flac_duration(const FLAC__StreamMetadata_StreamInfo *stream_info) noexcept
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user