sim: common: use #error properly
authorMike Frysinger <vapier@gentoo.org>
Tue, 12 Jan 2021 08:51:44 +0000 (03:51 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 12 Jan 2021 08:51:44 +0000 (03:51 -0500)
sim/common/ChangeLog
sim/common/sim-profile.h

index 33afbfba4690806eb1b6b8199e873ccebfa40d4b..608a0859ce895935c6b401722e5fcecea0814704 100644 (file)
@@ -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.
index a43d11aafaf6dbc6216c25b66825fce9e5df1e4d..17017c469a4a29be821dfc5fa6320068019eb942 100644 (file)
@@ -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.  */