more [[gnu::...]] attributes

This commit is contained in:
Max Kellermann
2021-10-13 17:27:16 +02:00
parent 18f64b5fb7
commit 2fbbd540bb
5 changed files with 11 additions and 11 deletions

View File

@@ -40,12 +40,12 @@ class UpnpNeighborExplorer final
Server(const Server &) = delete;
Server &operator=(const Server &) = delete;
gcc_pure
[[gnu::pure]]
bool operator==(const Server &other) const noexcept {
return name == other.name;
}
[[nodiscard]] gcc_pure
[[nodiscard]] [[gnu::pure]]
NeighborInfo Export() const noexcept {
return { "smb://" + name + "/", comment };
}