Added LTO support and fix warnings (maybe-uninitialized).

This commit is contained in:
Juan RP
2019-06-27 17:09:43 +02:00
parent bb96486b12
commit 0677678387
32 changed files with 92 additions and 76 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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))