From f220ef633cd8445d620d94f7af2f75dd097b3d13 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 12 Jan 2021 03:51:44 -0500 Subject: [PATCH] sim: common: use #error properly --- sim/common/ChangeLog | 4 ++++ sim/common/sim-profile.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 33afbfba469..608a0859ce8 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +2021-01-12 Mike Frysinger + + * sim-profile.h [!WITH_PROFILE]: Rewrite to use #error. + 2021-01-11 Mike Frysinger * acinclude.m4 (SIM_AC_OUTPUT): Require SIM_AC_OPTION_WARNINGS. diff --git a/sim/common/sim-profile.h b/sim/common/sim-profile.h index a43d11aafaf..17017c469a4 100644 --- a/sim/common/sim-profile.h +++ b/sim/common/sim-profile.h @@ -21,7 +21,7 @@ along with this program. If not, see . */ #define SIM_PROFILE_H #ifndef WITH_PROFILE -Error, WITH_PROFILE not defined. +#error "WITH_PROFILE not defined" #endif /* Standard profilable entities. */ -- 2.30.2