diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-04-11 17:52:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-11 17:52:52 +0200 |
| commit | c1d9fbd3925d6e10919a7793fc214c9f1a01b2ab (patch) | |
| tree | a74bdf6f87d07a24496effbc157f74d379d25007 /dev/kernel/NewKit/Defines.h | |
| parent | 8988b6f166d1087615b21229df651e0bcc0fa048 (diff) | |
| parent | c3856eddb5a8146751dac82ad1ba4433f5ca6d6d (diff) | |
Merge pull request #14 from amlel-el-mahrouss/dev
tweak kernel, boot: use -Wall, -Werror, -Wpedantic now
Diffstat (limited to 'dev/kernel/NewKit/Defines.h')
| -rw-r--r-- | dev/kernel/NewKit/Defines.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/dev/kernel/NewKit/Defines.h b/dev/kernel/NewKit/Defines.h index 72e3c552..15b1d907 100644 --- a/dev/kernel/NewKit/Defines.h +++ b/dev/kernel/NewKit/Defines.h @@ -135,8 +135,9 @@ namespace Kernel /// @param type (a1) the data. /// @return a1 as Char* template <typename T> - Char* AsBytes(T type) noexcept + const Char* AsBytes(T type) noexcept { + NE_UNUSED(type); return nullptr; } @@ -180,19 +181,19 @@ namespace Kernel ISchedulable(const ISchedulable&) = default; /// @brief Is this object only accepting user tasks? - virtual const Bool IsUser() + virtual Bool IsUser() { return NO; } /// @brief Is this object only accepting kernel tasks? - virtual const Bool IsKernel() + virtual Bool IsKernel() { return NO; } /// @brief Is this object offloading to another CPU? - virtual const Bool HasMP() + virtual Bool HasMP() { return NO; } |
