mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	fix warnings [ci skip]
This commit is contained in:
		
							parent
							
								
									3354a8ccee
								
							
						
					
					
						commit
						1b65427fdf
					
				@ -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 );
 | 
			
		||||
 | 
			
		||||
@ -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 ) );
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user