diff options
author | Lenny Maiorani <lenny@colorado.edu> | 2020-10-20 10:08:13 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-20 18:08:13 +0200 |
commit | d1fe6a0b535169aed22d08463bb92b9ae62b5d15 (patch) | |
tree | 06841235a49af66d66d46033a44c30237cedd39d /Kernel/API | |
parent | a40abd6ce3a032b1baf52c3573ff02ad658c6e91 (diff) | |
download | serenity-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.h | 2 |
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 |