Added LTO support and fix warnings (maybe-uninitialized).
This commit is contained in:
@@ -42,7 +42,7 @@ pkgdb_cb(struct xbps_handle *xhp UNUSED,
|
||||
void *arg,
|
||||
bool *done UNUSED)
|
||||
{
|
||||
const char *pkgver;
|
||||
const char *pkgver = NULL;
|
||||
char *pkgname;
|
||||
int rv, *errors = (int *)arg;
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ check_file_mtime(xbps_dictionary_t d, const char *pkg, const char *path)
|
||||
{
|
||||
struct stat sb;
|
||||
uint64_t mtime = 0;
|
||||
const char *file;
|
||||
const char *file = NULL;
|
||||
|
||||
/* if obj is not there, skip silently */
|
||||
if (!xbps_dictionary_get_uint64(d, "mtime", &mtime))
|
||||
@@ -82,7 +82,7 @@ check_pkg_files(struct xbps_handle *xhp, const char *pkgname, void *arg)
|
||||
xbps_object_t obj;
|
||||
xbps_object_iterator_t iter;
|
||||
xbps_dictionary_t pkg_filesd = arg;
|
||||
const char *file, *sha256;
|
||||
const char *file = NULL, *sha256 = NULL;
|
||||
char *path;
|
||||
bool mutable, test_broken = false;
|
||||
int rv = 0, errors = 0;
|
||||
|
||||
@@ -49,7 +49,7 @@ check_pkg_rundeps(struct xbps_handle *xhp, const char *pkgname, void *arg)
|
||||
{
|
||||
xbps_dictionary_t pkg_propsd = arg;
|
||||
xbps_array_t array;
|
||||
const char *reqpkg;
|
||||
const char *reqpkg = NULL;
|
||||
int rv = 0;
|
||||
|
||||
if (!xbps_pkg_has_rundeps(pkg_propsd))
|
||||
|
||||
Reference in New Issue
Block a user