util/StringStrip: use [[gnu::...]] attributes

This commit is contained in:
Max Kellermann
2021-11-26 16:23:16 +01:00
parent f01388559f
commit 05f529fffd
5 changed files with 24 additions and 28 deletions

View File

@@ -19,6 +19,7 @@
#include "LogBackend.hxx"
#include "Log.hxx"
#include "util/Compiler.h"
#include "util/Domain.hxx"
#include "util/StringStrip.hxx"
#include "Version.h"
@@ -110,7 +111,7 @@ chomp_length(std::string_view p) noexcept
#ifdef HAVE_SYSLOG
gcc_const
[[gnu::const]]
static int
ToSysLogLevel(LogLevel log_level) noexcept
{