Ticket #83: patch.patch
File patch.patch, 1.8 KB (added by jimmy, 13 years ago) |
---|
-
include/parrot/atomic/fallback.h
71 71 do { \ 72 72 LOCK((a).lock); \ 73 73 if ((a).val == (expect)) { \ 74 void * orig = (a).val; \75 74 (a).val = (update); \ 76 UNUSED(orig) \77 75 (result) = 1; \ 78 76 } \ 79 77 else { \ … … 86 84 do { \ 87 85 LOCK((a).lock); \ 88 86 if ((a).val == (expect)) { \ 89 INTVAL orig = (a).val; \90 87 (a).val = (update); \ 91 UNUSED(orig) \92 88 (result) = 1; \ 93 89 } \ 94 90 else { \ -
include/parrot/compiler.h
111 111 /* UNUSED() is the old way we handled shim arguments Should still be 112 112 used in cases where the argument should, at some point be used. 113 113 */ 114 #define UNUSED(a ) if (0) (void)(a);114 #define UNUSED(a...) if (0) (void)(a); 115 115 116 116 #if PARROT_HAS_SAL 117 117 # define PARROT_CAN_RETURN_NULL /*@null@*/ __maybenull -
src/stm/backend.c
37 37 # undef fprintf 38 38 # define STM_TRACE_SAFE(x...) fprintf(stderr, x); fprintf(stderr, "\n"); 39 39 #else 40 static void STM_TRACE(const char *x, ...) /* HEADERIZER SKIP */ 41 { 42 UNUSED(x); 43 } 44 static void STM_TRACE_SAFE(const char *x, ...) /* HEADERIZER SKIP */ 45 { 46 UNUSED(x); 47 } 40 # define STM_TRACE(x...) UNUSED(x); 41 # define STM_TRACE_SAFE(x...) UNUSED(x); 48 42 #endif 49 43 50 44 /* HEADERIZER HFILE: include/parrot/stm/backend.h */