use [[gnu::...]] attributes

This commit is contained in:
Max Kellermann
2023-03-06 15:57:36 +01:00
parent 3b9aab0684
commit 42f6a0441c
101 changed files with 167 additions and 234 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ ConfigData::Clear()
}
template<typename T>
gcc_pure
[[gnu::pure]]
static auto
FindLast(const std::forward_list<T> &list)
{
-2
View File
@@ -4,8 +4,6 @@
#ifndef MPD_CONFIG_PARAM_HXX
#define MPD_CONFIG_PARAM_HXX
#include "util/Compiler.h"
#include <string>
class AllocatedPath;
+1 -1
View File
@@ -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