Issue created by Vijay Banerjee: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5813



## Summary
Build fails on both posix and non-posix configs with following errors:

```
../../../contrib/cpukit/libstdthreads/cnd.c: In function 'cnd_broadcast':
../../../contrib/cpukit/libstdthreads/cnd.c:39:36: error: passing argument 1 of 
'pthread_cond_broadcast' from incompatible pointer type 
[-Wincompatible-pointer-types]
   39 |         if (pthread_cond_broadcast(cond) != 0)
      |                                    ^~~~
      |                                    |
      |                                    cnd_t *
In file included from ../../../contrib/cpukit/libstdthreads/cnd.c:31:
/home/phoebus3/VBANERJEE/development/7/powerpc-rtems7/include/pthread.h:126:49: 
note: expected 'pthread_cond_t *' but argument is of type 'cnd_t *'
  126 | int     pthread_cond_broadcast (pthread_cond_t *__cond);
      |                                 ~~~~~~~~~~~~~~~~^~~~~~
../../../contrib/cpukit/libstdthreads/cnd.c: In function 'cnd_destroy':
../../../contrib/cpukit/libstdthreads/cnd.c:48:36: error: passing argument 1 of 
'pthread_cond_destroy' from incompatible pointer type 
[-Wincompatible-pointer-types]
   48 |         (void)pthread_cond_destroy(cond);
      |                                    ^~~~
      |                                    |
      |                                    cnd_t *
```

## Steps to reproduce
`./waf build`

<!-- Pre-set options
- milestone
-->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5813
You're receiving this email because of your account on gitlab.rtems.org. 
Unsubscribe from this thread: 
https://gitlab.rtems.org/-/namespace/49/sent_notifications/6-0e79isaym6pvp4yz278n9wld0-1d/unsubscribe
 | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | 
Help: https://gitlab.rtems.org/help


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to