summaryrefslogtreecommitdiff
path: root/Kernel/API
diff options
context:
space:
mode:
authorLenny Maiorani <lenny@colorado.edu>2020-10-20 10:08:13 -0600
committerGitHub <noreply@github.com>2020-10-20 18:08:13 +0200
commitd1fe6a0b535169aed22d08463bb92b9ae62b5d15 (patch)
tree06841235a49af66d66d46033a44c30237cedd39d /Kernel/API
parenta40abd6ce3a032b1baf52c3573ff02ad658c6e91 (diff)
downloadserenity-d1fe6a0b535169aed22d08463bb92b9ae62b5d15.zip
Everywhere: Redundant inline specifier on constexpr functions (#3807)
Problem: - `constexpr` functions are decorated with the `inline` specifier keyword. This is redundant because `constexpr` functions are implicitly `inline`. - [dcl.constexpr], ยง7.1.5/2 in the C++11 standard): "constexpr functions and constexpr constructors are implicitly inline (7.1.2)". Solution: - Remove the redundant `inline` keyword.
Diffstat (limited to 'Kernel/API')
-rw-r--r--Kernel/API/Syscall.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h
index 92bbf262d3..54fb533f13 100644
--- a/Kernel/API/Syscall.h
+++ b/Kernel/API/Syscall.h
@@ -205,7 +205,7 @@ enum Function {
__Count
};
-inline constexpr const char* to_string(Function function)
+constexpr const char* to_string(Function function)
{
switch (function) {
#undef __ENUMERATE_SYSCALL