From 3152413ff089ae194f69a6e8ba2b490201248c79 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Mon, 25 Mar 2024 23:02:55 +0100 Subject: [PATCH] Avoid pedantic warnings in POSIX . The -Wpedantic warnings are only supported in C mode, but the GCC build and other ports use this kinda-unsupported mode and produce a lot of these needless warnings, so remove the trailing commas in the enums. --- kernel/include/sortix/ucontext.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/include/sortix/ucontext.h b/kernel/include/sortix/ucontext.h index cef7d5dc..68ccbd3d 100644 --- a/kernel/include/sortix/ucontext.h +++ b/kernel/include/sortix/ucontext.h @@ -72,7 +72,7 @@ enum #define REG_CR2 REG_CR2 REG_FSBASE, #define REG_FSBASE REG_FSBASE - REG_GSBASE, + REG_GSBASE #define REG_GSBASE REG_GSBASE }; #endif @@ -126,7 +126,7 @@ enum #define REG_CR2 REG_CR2 REG_FSBASE, #define REG_FSBASE REG_FSBASE - REG_GSBASE, + REG_GSBASE #define REG_GSBASE REG_GSBASE }; #endif