Fix some warnings.

This commit is contained in:
Alex Shvartzkop 2025-06-30 06:52:16 +03:00
parent 8a0e0b620c
commit 50ce7d93fb
4 changed files with 9 additions and 4 deletions

View File

@ -340,7 +340,9 @@ const wxCursorBundle& CURSOR_STORE::storeGetBundle( KICURSOR aIdKey ) const
wxASSERT_MSG( false, wxString::Format( "Could not find cursor bundle with ID %d",
static_cast<int>( aIdKey ) ) );
return wxCursorBundle();
static const wxCursorBundle invalid;
return invalid;
}
#else
const wxCursor& CURSOR_STORE::storeGetCursor( KICURSOR aIdKey, bool aHiDPI ) const

View File

@ -151,6 +151,7 @@ wxString PATHS::GetDefaultUserProjectsPath()
}
#if !defined( __WXMAC__ ) && !defined( __WXMSW__ )
/**
* Get the CMake build root directory for the current executable
* (which assumes the executable is in a build directory).
@ -191,6 +192,7 @@ static wxString getBuildDirectoryRoot()
return fn.GetPath();
}
#endif
wxString PATHS::GetStockDataPath( bool aRespectRunFromBuildDir )

View File

@ -713,7 +713,7 @@ void KIBIS_PIN::getKuKdFromFile( const std::string& aSimul )
i = ( i + 1 ) % 3;
}
}
catch( const std::exception& e )
catch( const std::exception& )
{
Report( _( "Error while reading temporary file" ), RPT_SEVERITY_ERROR );
}

View File

@ -669,8 +669,9 @@ bool MEANDER_SHAPE::Fit( MEANDER_TYPE aType, const SEG& aSeg, const VECTOR2I& aP
{
const MEANDER_SETTINGS& st = Settings();
bool checkMode = false;
MEANDER_TYPE prim1, prim2;
bool checkMode = false;
MEANDER_TYPE prim1 = MT_EMPTY;
MEANDER_TYPE prim2 = MT_EMPTY;
if( aType == MT_CHECK_START )
{