fix warnings [ci skip]

This commit is contained in:
Juergen E. Fischer 2019-09-07 23:37:22 +02:00
parent 3354a8ccee
commit 1b65427fdf
2 changed files with 8 additions and 0 deletions

View File

@ -1453,8 +1453,10 @@ void QgsCoordinateReferenceSystem::setProj4String( const QString &proj4String )
if ( !d->mPj )
{
#ifdef QGISDEBUG
const int errNo = proj_context_errno( ctx );
QgsDebugMsg( QStringLiteral( "proj string rejected: %1" ).arg( proj_errno_string( errNo ) ) );
#endif
d->mIsValid = false;
}
else
@ -2441,6 +2443,9 @@ bool QgsCoordinateReferenceSystem::loadIds( QHash<int, QString> &wkts )
#if PROJ_VERSION_MAJOR>=6
static void sync_db_proj_logger( void * /* user_data */, int level, const char *message )
{
#ifndef QGISDEBUG
Q_UNUSED( message )
#endif
if ( level == PJ_LOG_ERROR )
{
QgsDebugMsgLevel( QStringLiteral( "PROJ: %1" ).arg( message ), 2 );

View File

@ -277,6 +277,9 @@ static void proj_collecting_logger( void *user_data, int /*level*/, const char *
static void proj_logger( void *, int level, const char *message )
{
#ifndef QGISDEBUG
Q_UNUSED( message )
#endif
if ( level == PJ_LOG_ERROR )
{
QgsDebugMsg( QString( message ) );