From eea609c55e2dd6e22a82f79638a43a60d0c5627d Mon Sep 17 00:00:00 2001 From: "Anthony J. Bentley" Date: Sun, 17 Jul 2016 18:59:26 -0600 Subject: [PATCH] Explicitly error out when no context definition is provided. If there is no context definition in a non-generic build, compilation will error out anyway, but in a less obvious place. --- Source/Core/Core/MachineContext.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/MachineContext.h b/Source/Core/Core/MachineContext.h index 8c683121d1..81012b6b83 100644 --- a/Source/Core/Core/MachineContext.h +++ b/Source/Core/Core/MachineContext.h @@ -114,7 +114,7 @@ typedef mcontext_t SContext; #define CTX_SP sp #define CTX_PC pc #else -#warning No context definition for OS +#error No context definition for OS #endif #elif defined(__NetBSD__) #include @@ -164,6 +164,8 @@ typedef mcontext_t SContext; #else #error No context definition for OS #endif +#else +#error No context definition for OS #endif #if _M_X86_64