[Rpm-maint] [rpm-software-management/rpm] Fix warnings from set but unused, variables in macro.c and rpmlua.c (#1410)
Panu Matilainen
notifications at github.com
Fri Oct 23 11:41:09 UTC 2020
macro.c: In function ‘mbopt’:
macro.c:895:19: warning: unused variable ‘me’ [-Wunused-variable]
895 | rpmMacroEntry me = mb->me;
| ^~
rpmlua.c: In function ‘fd_seek’:
rpmlua.c:985:22: warning: unused variable ‘mode’ [-Wunused-variable]
985 | static const int mode[] = {SEEK_SET, SEEK_CUR, SEEK_END};
| ^~~~
The former is actually unused, the latter should be used.
You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/1410
-- Commit Summary --
* Fix warnings from set but unused, variables in macro.c and rpmlua.c
-- File Changes --
M rpmio/macro.c (1)
M rpmio/rpmlua.c (2)
-- Patch Links --
https://github.com/rpm-software-management/rpm/pull/1410.patch
https://github.com/rpm-software-management/rpm/pull/1410.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1410
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20201023/0958a39e/attachment.html>
More information about the Rpm-maint
mailing list