fix some compiler warnings about unused functions

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2016-01-12 15:25:50 +02:00
parent ac1624df8e
commit e012cdc1a0
5 changed files with 8 additions and 11 deletions

View file

@ -62,7 +62,7 @@ static HashReturn Final(hashState *state, BitSequence *hashval)
return (HashReturn) Squeeze(state, hashval, state->fixedOutputLength);
}
#ifndef QT_BUILDING_QT
#ifndef QT_KATIE
static HashReturn Hash(int hashbitlen, const BitSequence *data, DataLength databitlen, BitSequence *hashval)
{
hashState state;

View file

@ -102,8 +102,8 @@ static inline const QMetaObjectPrivate *priv(const uint* data)
// must be kept in sync with the moc
// Number of fields in the QMetaObjectPrivate.
static int qmetaobjectindex = 14;
static int qmetaobjectrevision = 6;
const static int qmetaobjectindex = 14;
const static int qmetaobjectrevision = 6;
class QMetaMethodBuilderPrivate
{

View file

@ -459,6 +459,8 @@ extern bool qt_xdnd_dragging;
// gui or non-gui from qapplication.cpp
extern bool qt_is_gui_used;
#ifndef QT_NO_XINPUT
# ifdef QT_RUNTIME_XINPUT
/*!
\internal
Try to resolve a \a symbol from \a library with the version specified
@ -491,6 +493,8 @@ static void* qt_load_library_runtime(const char *library, int vernum,
}
return 0;
}
# endif // QT_RUNTIME_XINPUT
#endif // QT_NO_XINPUT
#ifndef QT_NO_XINPUT
# ifdef QT_RUNTIME_XINPUT

View file

@ -209,6 +209,7 @@ static const char * x11_atomnames = {
"ERASER\0"
};
// TODO: share with qapplication_x11
/*!
\internal
Try to resolve a \a symbol from \a library with the version specified

View file

@ -186,14 +186,6 @@ static bool releaseTsFile(const QString& tsFileName,
return releaseTranslator(tor, qmFileName, cd, removeIdentical);
}
static void print(const QString &fileName, int lineNo, const QString &msg)
{
if (lineNo)
printErr(QString::fromLatin1("%2(%1): %3").arg(lineNo).arg(fileName, msg));
else
printErr(msg);
}
int main(int argc, char **argv)
{
#ifdef QT_BOOTSTRAPPED