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:
parent
62b4634777
commit
999248ab03
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue