[Rpm-maint] [rpm-software-management/rpm] Prefer '[] && []' to '[ -a ]' and '[] || []' to '[ -o ]' in tests (#810)

2019-08-09 Thread pavlinamv
It corrects warnings [SC2166] spotted by covscan: warning: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. [SC2166] warning: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. [SC2166] Motivated by last the comment in #802. This should fix all [sc2166] warnings spotted by covscan

[Rpm-maint] [rpm-software-management/rpm] Use -flto=auto as a default for _lto_cflags. (#809)

2019-08-09 Thread marxin
After a long discussion, we as GCC community newly introduced -flto=auto option. Doing that, LTO can automatically detect make's jobserver or fall back to # of cores. You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/809 --