aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-01-12 03:51:44 -0500
committerMike Frysinger <vapier@gentoo.org>2021-01-12 03:51:44 -0500
commitf220ef633cd8445d620d94f7af2f75dd097b3d13 (patch)
tree12b4e8d3adb5a4e306e6bfe5fe81ee939d5e81d3 /sim
parentf631b79abeda4dc7ee08850885bda63f7616f84c (diff)
downloadgdb-f220ef633cd8445d620d94f7af2f75dd097b3d13.zip
gdb-f220ef633cd8445d620d94f7af2f75dd097b3d13.tar.gz
gdb-f220ef633cd8445d620d94f7af2f75dd097b3d13.tar.bz2
sim: common: use #error properly
Diffstat (limited to 'sim')
-rw-r--r--sim/common/ChangeLog4
-rw-r--r--sim/common/sim-profile.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 33afbfb..608a085 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,7 @@
+2021-01-12 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-profile.h [!WITH_PROFILE]: Rewrite to use #error.
+
2021-01-11 Mike Frysinger <vapier@gentoo.org>
* 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 a43d11a..17017c4 100644
--- a/sim/common/sim-profile.h
+++ b/sim/common/sim-profile.h
@@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#define SIM_PROFILE_H
#ifndef WITH_PROFILE
-Error, WITH_PROFILE not defined.
+#error "WITH_PROFILE not defined"
#endif
/* Standard profilable entities. */