1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 09:28:13 +00:00

Kernel/aarch64: Remove counterproductive volatile

Should not be needed, and triggers -Wvolatile in gcc.
See discussion on #16790.
This commit is contained in:
Nico Weber 2023-01-05 13:43:36 -05:00 committed by Linus Groh
parent 3b682e885e
commit 7f4680a377

View file

@ -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();
}
}