Ticket #83: patch.patch

File patch.patch, 1.8 KB (added by jimmy, 13 years ago)
  • include/parrot/atomic/fallback.h

     
    7171    do { \ 
    7272        LOCK((a).lock); \ 
    7373        if ((a).val == (expect)) { \ 
    74             void * orig = (a).val; \ 
    7574            (a).val = (update); \ 
    76             UNUSED(orig) \ 
    7775            (result) = 1; \ 
    7876        } \ 
    7977        else { \ 
     
    8684    do { \ 
    8785        LOCK((a).lock); \ 
    8886        if ((a).val == (expect)) { \ 
    89             INTVAL orig = (a).val; \ 
    9087            (a).val = (update); \ 
    91             UNUSED(orig) \ 
    9288            (result) = 1; \ 
    9389        } \ 
    9490        else { \ 
  • include/parrot/compiler.h

     
    111111/* UNUSED() is the old way we handled shim arguments Should still be 
    112112   used in cases where the argument should, at some point be used. 
    113113 */ 
    114 #define UNUSED(a) if (0) (void)(a); 
     114#define UNUSED(a...) if (0) (void)(a); 
    115115 
    116116#if PARROT_HAS_SAL 
    117117#  define PARROT_CAN_RETURN_NULL      /*@null@*/ __maybenull 
  • src/stm/backend.c

     
    3737#  undef fprintf 
    3838#  define STM_TRACE_SAFE(x...) fprintf(stderr, x); fprintf(stderr, "\n"); 
    3939#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); 
    4842#endif 
    4943 
    5044/* HEADERIZER HFILE: include/parrot/stm/backend.h */