use [[gnu::...]] attributes
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ ConfigData::Clear()
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
gcc_pure
|
||||
[[gnu::pure]]
|
||||
static auto
|
||||
FindLast(const std::forward_list<T> &list)
|
||||
{
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
#ifndef MPD_CONFIG_PARAM_HXX
|
||||
#define MPD_CONFIG_PARAM_HXX
|
||||
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
class AllocatedPath;
|
||||
|
||||
@@ -89,7 +89,7 @@ static constexpr unsigned n_config_block_templates =
|
||||
static_assert(n_config_block_templates == unsigned(ConfigBlockOption::MAX),
|
||||
"Wrong number of config_block_templates");
|
||||
|
||||
gcc_pure
|
||||
[[gnu::pure]]
|
||||
static inline unsigned
|
||||
ParseConfigTemplateName(const ConfigTemplate templates[], unsigned count,
|
||||
const char *name) noexcept
|
||||
|
||||
Reference in New Issue
Block a user