Shut up a few silly compiler warnings that have crept in

- missing cast in python header subscript
- (false) warning about uninitialized variable, unused variable in rpmfc
- missing include in rpmio
This commit is contained in:
Panu Matilainen 2008-04-03 08:04:22 +03:00
parent 62b4634777
commit 999248ab03
3 changed files with 3 additions and 3 deletions

View File

@ -302,7 +302,7 @@ static char * rpmfcFileDep(int ix, rpmds ds)
{
rpmTag tagN = rpmdsTagN(ds);
char *buf = NULL;
char deptype;
char deptype = '?';
if (ds == NULL) {
return xstrdup("");
@ -820,7 +820,6 @@ static int rpmfcELF(rpmfc fc)
rpmds * depsp, ds;
rpmTag tagN;
int32_t dsContext;
char * t;
int xx;
int isElf64;
int isDSO;

View File

@ -570,7 +570,7 @@ static PyObject * hdr_getattro(PyObject * o, PyObject * n)
PyObject * res;
res = PyObject_GenericGetAttr(o, n);
if (res == NULL)
res = hdr_subscript(o, n);
res = hdr_subscript((hdrObject *)o, n);
return res;
}

View File

@ -25,6 +25,7 @@ extern int h_errno;
#include <rpm/rpmlog.h>
#include <rpm/rpmmacro.h>
#include <rpm/rpmfileutil.h>
#include <rpm/rpmstring.h>
#include "rpmio/rpmio_internal.h"
#include "rpmio/ugid.h"