Commit be8ed2f5 authored by Max Kellermann's avatar Max Kellermann

tag/Settings: use [[gnu::const]]

parent 08491fcd
...@@ -22,18 +22,17 @@ ...@@ -22,18 +22,17 @@
#include "Mask.hxx" #include "Mask.hxx"
#include "Type.h" #include "Type.h"
#include "util/Compiler.h"
extern TagMask global_tag_mask; extern TagMask global_tag_mask;
gcc_const [[gnu::const]]
static inline bool static inline bool
IsTagEnabled(TagType tag) noexcept IsTagEnabled(TagType tag) noexcept
{ {
return global_tag_mask.Test(tag); return global_tag_mask.Test(tag);
} }
gcc_const [[gnu::const]]
static inline bool static inline bool
IsTagEnabled(unsigned tag) noexcept IsTagEnabled(unsigned tag) noexcept
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment