Changeset 383 for trunk/include


Ignore:
Timestamp:
Dec 5, 2011, 10:30:33 PM (13 years ago)
Author:
katerina
Message:

Fix for ticket #281 (warnings from clang static analyzer).

Location:
trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/sh_mem.h

    r149 r383  
    3535#define SH_FREE(a)   sh_mem_free((a), FIL__, __LINE__)
    3636#define SH_ALLOC(a)  sh_mem_malloc((a), FIL__, __LINE__)
     37#define SH_OALLOC(a,b,c)  sh_mem_malloc((a), (b), (c))
    3738
    3839#else
     
    5152#define SH_FREE(a)   sh_mem_free(a)
    5253#define SH_ALLOC(a)  sh_mem_malloc(a)
     54#define SH_OALLOC(a,b,c)  ((void) (b),           \
     55                           (void) (c),           \
     56                           sh_mem_malloc(a))     \
    5357
    5458#endif
  • trunk/include/sh_pthread.h

    r378 r383  
    3131        do {                                                               \
    3232                int oldtype;                                               \
    33                 int executeStack = 0;                                      \
     33                volatile int executeStack = 0;                             \
    3434                pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, &oldtype);  \
    3535                pthread_cleanup_push(sh_pthread_mutex_unlock, (void*)&(M));\
Note: See TracChangeset for help on using the changeset viewer.