RTEMS | _Processor_mask_Copy(): Address sign mismatch warning (!1343)
Joel Sherrill (@joel)
gitlab at rtems.org
Wed Jul 8 15:53:42 UTC 2026
Joel Sherrill commented on a discussion on cpukit/include/rtems/score/processormaskimpl.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1343#note_154013
> )
> {
> return _Processor_mask_Copy(
> &dst->__bits[ 0 ],
I was attempting to address a set of warnings shown below. But _sys/_bitset.h_ is from FreeBSD. We didn't pick the type.
$ ./waf >/dev/null
```
Regenerate build specification cache (needs a couple of seconds)...
In file included from ../../../cpukit/include/rtems/score/smpimpl.h:43,
from ../../../bsps/shared/start/bspfatal-default.c:43:
../../../cpukit/include/rtems/score/processormaskimpl.h: In function '_Processor_mask_To_cpu_set_t':
../../../cpukit/include/rtems/score/processormaskimpl.h:409:5: error: pointer targets in passing argument 1 of '_Processor_mask_Copy' differ in signedness [-Werror=pointer-sign]
409 | &dst->__bits[ 0 ],
| ^~~~~~~~~~~~~~~~~
| |
| long int *
../../../cpukit/include/rtems/score/processormaskimpl.h:380:24: note: expected 'long unsigned int *' but argument is of type 'long int *'
380 | unsigned long *dst,
| ~~~~~~~~~~~~~~~~~~~~~^~~
```
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1343#note_154013
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-1dt0bz9x05itvl8p7e0d9aagx-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260708/e6e4a02e/attachment-0001.htm>
More information about the bugs
mailing list