summaryrefslogtreecommitdiff
path: root/Tests/Kernel
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2021-07-13 16:23:39 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-14 13:12:25 +0200
commit6821cd45ed7894e9f1053b44be8f75d035ac88ea (patch)
tree71a0e9d1c9e1c701f4e707c614f7b9a526bbb81c /Tests/Kernel
parenta88f7c99fe7026ee6e0c0a2b2385e767c04133c2 (diff)
downloadserenity-6821cd45ed7894e9f1053b44be8f75d035ac88ea.zip
Tests: Fix compile errors on Clang
Since Clang enables a couple of warnings that we don't have in GCC, these were not caught before. Included fixes: - Use correct printf format string for `size_t` - Don't compare Nonnull(Ref|Own)Ptr` to nullptr - Fix unsigned int& => unsigned long& conversion
Diffstat (limited to 'Tests/Kernel')
-rw-r--r--Tests/Kernel/fuzz-syscalls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/Kernel/fuzz-syscalls.cpp b/Tests/Kernel/fuzz-syscalls.cpp
index e51a39824b..3b7a812c41 100644
--- a/Tests/Kernel/fuzz-syscalls.cpp
+++ b/Tests/Kernel/fuzz-syscalls.cpp
@@ -134,7 +134,7 @@ static void do_random_tests()
0xffffffff,
};
dbgln("Doing a few random syscalls with:");
- for (unsigned long& interesting_value : interesting_values) {
+ for (const auto& interesting_value : interesting_values) {
dbgln(" {0} ({0:p})", interesting_value);
}
for (size_t i = 0; i < fuzz_syscall_count; ++i) {