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

@@ -54,7 +54,7 @@ struct search_data {
static void
print_results(struct xbps_handle *xhp, struct search_data *sd)
{
const char *pkgver, *desc, *inststr;
const char *pkgver = NULL, *desc = NULL, *inststr = NULL;
char tmp[256], *out;
unsigned int j, tlen = 0, len = 0;
@@ -102,7 +102,7 @@ search_array_cb(struct xbps_handle *xhp UNUSED,
{
xbps_object_t obj2;
struct search_data *sd = arg;
const char *pkgver = NULL, *desc, *str;
const char *pkgver = NULL, *desc = NULL, *str = NULL;
if (!xbps_dictionary_get_cstring_nocopy(obj, "pkgver", &pkgver))
return 0;