From 7f4680a3772abb78b3d66be50149d895f9892d53 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 5 Jan 2023 13:43:36 -0500 Subject: [PATCH] Kernel/aarch64: Remove counterproductive `volatile` Should not be needed, and triggers -Wvolatile in gcc. See discussion on #16790. --- Kernel/Arch/aarch64/ASM_wrapper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Arch/aarch64/ASM_wrapper.h b/Kernel/Arch/aarch64/ASM_wrapper.h index 9f879b24698..f083f63f1b6 100644 --- a/Kernel/Arch/aarch64/ASM_wrapper.h +++ b/Kernel/Arch/aarch64/ASM_wrapper.h @@ -63,7 +63,7 @@ inline ExceptionLevel get_current_exception_level() inline void wait_cycles(int n) { // FIXME: Make timer-based. - for (int volatile i = 0; i < n; i = i + 1) { + for (int i = 0; i < n; i = i + 1) { Processor::pause(); } }