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

@@ -20,12 +20,9 @@
#ifndef MPD_LIGHT_DIRECTORY_HXX
#define MPD_LIGHT_DIRECTORY_HXX
#include "util/Compiler.h"
#include <chrono>
#include <string>
#include <time.h>
struct Tag;
/**
@@ -53,7 +50,7 @@ struct LightDirectory {
return *uri == 0;
}
gcc_pure
[[gnu::pure]]
const char *GetPath() const noexcept {
return uri;
}