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

@@ -30,8 +30,6 @@
#ifndef NET_TO_STRING_HXX
#define NET_TO_STRING_HXX
#include "util/Compiler.h"
#include <string>
class SocketAddress;
@@ -40,7 +38,7 @@ class SocketAddress;
* Converts the specified socket address into a string in the form
* "IP:PORT".
*/
gcc_pure
[[gnu::pure]]
std::string
ToString(SocketAddress address) noexcept;