use [[gnu::pure]] instead of gcc_pure

This is semi-standard and doesn't require the util/Compiler.h header.
This commit is contained in:
Max Kellermann
2021-02-08 14:59:40 +01:00
committed by Max Kellermann
parent 01af2778ab
commit 6cdb3ff21e
20 changed files with 61 additions and 80 deletions

View File

@@ -32,8 +32,6 @@
#pragma once
#include "util/Compiler.h"
class KernelVersionCode {
unsigned value = 0;
@@ -53,6 +51,6 @@ public:
/**
* Is the currently running Linux kernel at least the given version?
*/
gcc_const
[[gnu::const]]
bool
IsKernelVersionOrNewer(KernelVersionCode v) noexcept;