RTEMS | tc-timecounter-install.c:356:37: warning: left shift of negative value (#5385)
Joel Sherrill (@joel)
gitlab at rtems.org
Fri Oct 31 19:06:30 UTC 2025
Joel Sherrill created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5385
Assignees: Gedare Bloom and Sebastian Huber
## Summary
In the primary configuration I am testing, this is the last left shift of negative value warning.
```
../../../testsuites/validation/tc-timecounter-install.c: In function 'NtpUpdateAdjustmentSlower':
../../../testsuites/validation/tc-timecounter-install.c:356:37: warning: left shift of negative value [-Wshift-negative-value]
356 | *adjustment = -( (int64_t) 5000 ) << 32;
| ^~
```
Assigning to @gedare and @sebhub in case it requires touching rtems-central.
## Steps to reproduce
Build with this warning enabled and w/o -Werror.
<!-- Pre-set options
- milestone
-->
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5385
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20251031/20dc27c5/attachment.htm>
More information about the bugs
mailing list