summaryrefslogtreecommitdiff
path: root/gcc/ira-int.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ira-int.h')
-rw-r--r--gcc/ira-int.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ira-int.h b/gcc/ira-int.h
index 1fc6da265e2..b6605d59a7a 100644
--- a/gcc/ira-int.h
+++ b/gcc/ira-int.h
@@ -33,7 +33,9 @@ along with GCC; see the file COPYING3. If not see
#ifdef ENABLE_IRA_CHECKING
#define ira_assert(c) gcc_assert (c)
#else
-#define ira_assert(c)
+/* Always define and include C, so that warnings for empty body in an
+ ‘if’ statement and unused variable do not occur. */
+#define ira_assert(c) ((void)(0 && (c)))
#endif
/* Compute register frequency from edge frequency FREQ. It is