Author: infinoid
Date: Sat Jan  3 01:27:04 2009
New Revision: 34865

Modified:
   trunk/include/parrot/exceptions.h

Log:
[core] Fix PARROT_ASSERT_ARG's condition variable to be volatile.
This fixes some warnings with the x86 atomic ops.

Modified: trunk/include/parrot/exceptions.h
==============================================================================
--- trunk/include/parrot/exceptions.h   (original)
+++ trunk/include/parrot/exceptions.h   Sat Jan  3 01:27:04 2009
@@ -280,7 +280,7 @@
  * int _ASSERT_ARGS = PARROT_ASSERT_ARG(a) || PARROT_ASSERT_ARG(b) || ...
  */
 static inline int
-_PARROT_ASSERT_ARG(const void *x, const char *name,
+_PARROT_ASSERT_ARG(const volatile void *x, const char *name,
         const char *file, unsigned int line) /* HEADERIZER SKIP */
 {
 #ifndef NDEBUG

Reply via email to