summaryrefslogtreecommitdiff
path: root/libjava/include/java-assert.h
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/include/java-assert.h')
-rw-r--r--libjava/include/java-assert.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libjava/include/java-assert.h b/libjava/include/java-assert.h
index 57962418b7d..1d3a49bfa38 100644
--- a/libjava/include/java-assert.h
+++ b/libjava/include/java-assert.h
@@ -1,6 +1,6 @@
// java-assert.h - Header file holding assertion definitions. -*- c++ -*-
-/* Copyright (C) 1998, 1999 Free Software Foundation
+/* Copyright (C) 1998, 1999, 2010 Free Software Foundation
This file is part of libgcj.
@@ -29,8 +29,8 @@ void _Jv_Abort (const char *, const char *, int, const char *)
#else /* __GCJ_DEBUG */
#define _Jv_AssertDoCall(Message)
-#define JvAssertMessage(Expr, Message)
-#define JvAssert(Expr)
+#define JvAssertMessage(Expr, Message) (void) sizeof (Expr)
+#define JvAssert(Expr) (void) sizeof (Expr)
#define JvFail(Message) _Jv_Abort (0, 0, 0, Message)
#endif /* not __GCJ_DEBUG */