From 2c8e250093d20e5ab658f9de81a1ad9c98a47014 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 25 Jun 2012 18:27:26 +0000 Subject: silent compiler warnings git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@216 971eb68f-4bfb-0310-8326-d2484c010a4c --- RPM4/src/RPM4.xs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs index 869cb91..f8ade44 100644 --- a/RPM4/src/RPM4.xs +++ b/RPM4/src/RPM4.xs @@ -491,7 +491,7 @@ int _header_vs_dep(Header h, rpmds dep, int nopromote) { } int _headername_vs_dep(Header h, rpmds dep, int nopromote) { - char *name; rpm_tagtype_t type; + char *name; int rc = 0; CHECK_RPMDS_IX(dep); struct rpmtd_s val; @@ -2072,14 +2072,14 @@ void rpmlibdep() PREINIT: rpmds Dep = NULL; + PPCODE: +#if 0 rpmds next; const char ** provNames; int * provFlags; const char ** provVersions; int num = 0; int i; - PPCODE: -#if 0 num = rpmGetRpmlibProvides(&provNames, &provFlags, &provVersions); for (i = 0; i < num; i++) { #ifdef HDLISTDEBUG @@ -2888,11 +2888,11 @@ void Spec_icon(spec) rpmSpec spec PREINIT: - Package pkg; PPCODE: #ifdef RPM4_9_0 croak("icon exists only in rpm < 4.9; unused anyway"); #else + Package pkg; for (pkg = spec->packages; pkg != NULL; pkg = pkg->next) { char * dest = NULL; int len; @@ -2909,11 +2909,11 @@ void Spec_icon_url(spec) rpmSpec spec PREINIT: - Package pkg; PPCODE: #ifdef RPM4_9_0 croak("icon_url exists only in rpm < 4.9; unused anyway; unused anyway"); #else + Package pkg; for (pkg = spec->packages; pkg != NULL; pkg = pkg->next) { char * dest = NULL; int len; -- cgit v1.2.1