Index: trunk/include/sh_mem.h
===================================================================
--- trunk/include/sh_mem.h	(revision 382)
+++ trunk/include/sh_mem.h	(revision 383)
@@ -35,4 +35,5 @@
 #define SH_FREE(a)   sh_mem_free((a), FIL__, __LINE__)
 #define SH_ALLOC(a)  sh_mem_malloc((a), FIL__, __LINE__) 
+#define SH_OALLOC(a,b,c)  sh_mem_malloc((a), (b), (c)) 
 
 #else
@@ -51,4 +52,7 @@
 #define SH_FREE(a)   sh_mem_free(a)
 #define SH_ALLOC(a)  sh_mem_malloc(a)
+#define SH_OALLOC(a,b,c)  ((void) (b),		 \
+			   (void) (c),		 \
+			   sh_mem_malloc(a))	 \
 
 #endif
Index: trunk/include/sh_pthread.h
===================================================================
--- trunk/include/sh_pthread.h	(revision 382)
+++ trunk/include/sh_pthread.h	(revision 383)
@@ -31,5 +31,5 @@
 	do {                                                               \
                 int oldtype;                                               \
-		int executeStack = 0;                                      \
+		volatile int executeStack = 0;                             \
 		pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, &oldtype);  \
                 pthread_cleanup_push(sh_pthread_mutex_unlock, (void*)&(M));\
