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:

committed by
Max Kellermann

parent
01af2778ab
commit
6cdb3ff21e
@@ -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;
|
||||
|
Reference in New Issue
Block a user