[Rpm-maint] [rpm-software-management/rpm] Bring RPM_MASK_RETURN_TYPE in to the signed int range (PR #2459)
David Cantrell
notifications at github.com
Thu Mar 30 18:23:51 UTC 2023
Set to 0xffff0000 (or 4294901760), I was getting:
error: ISO C restricts enumerator values to range of 'int' (4294901760 is too large) [-Werror,-Wpedantic]
This happened not when building rpm itself, but when building rpminspect which links with librpm and uses rpm's headers. The system in question was FreeBSD 13.1 which has clang 13.0.0.
It is a corner case, but I like testing things on non-Linux platforms as often as I can to find errors like this.
With this change, the rpm test suite passes for me.
You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/2459
-- Commit Summary --
* Bring RPM_MASK_RETURN_TYPE in to the signed int range
-- File Changes --
M include/rpm/rpmtag.h (2)
-- Patch Links --
https://github.com/rpm-software-management/rpm/pull/2459.patch
https://github.com/rpm-software-management/rpm/pull/2459.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2459
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/2459 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230330/24532676/attachment.html>
More information about the Rpm-maint
mailing list