Changeset 473 for trunk/libs/libpthread


Ignore:
Timestamp:
Aug 21, 2018, 6:01:01 PM (6 years ago)
Author:
alain
Message:

Fix several GCC warning related to the -Wextra compilation option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libs/libpthread/pthread.c

    r457 r473  
    3232
    3333#define PTHREAD_MUTEX_DEBUG     0
    34 #define PTHREAD_BARRIER_DEBUG   0
     34#define PTHREAD_BARRIER_DEBUG   1
    3535
    3636////////////////////////////////////////////////////////////////////////////////////////////
     
    5656{
    5757    return hal_user_syscall( SYS_THREAD_JOIN,
    58                              (reg_t)exit_value, 0, 0, 0 );
     58                             (reg_t)trdid,
     59                             (reg_t)exit_value, 0, 0 );
    5960}
    6061
     
    346347
    347348#if PTHREAD_BARRIER_DEBUG
    348 printf("\n[BARRIER] %s : enter for core[%x,%d] / barrier = %x / node = %x\n",
     349printf("\n[BARRIER] %s : core[%x,%d] enter / barrier = %x / node = %x\n",
    349350__FUNCTION__ , cxy , lid , barrier, barrier->node[x][y][0] );
    350351#endif
Note: See TracChangeset for help on using the changeset viewer.