Fix some warnings (looking like potential bugs) detected by cppcheck, (a few from a patch from Julien Nabet <[email protected]>), remove not used vars and a few coding style fixes.
This commit is contained in:
@@ -2720,8 +2720,6 @@ bool IDF3_BOARD::ReadFile( const wxString& aFullFileName, bool aNoSubstituteOutl
|
||||
// 2. Check if a file with extension 'emp' exists and read it
|
||||
// 3. Open the specified filename and read it
|
||||
|
||||
std::string fname = TO_UTF8( aFullFileName );
|
||||
|
||||
wxFileName brdname( aFullFileName );
|
||||
wxFileName libname( aFullFileName );
|
||||
|
||||
@@ -3125,8 +3123,6 @@ bool IDF3_BOARD::WriteFile( const wxString& aFullFileName, bool aUnitMM, bool aF
|
||||
// 2. Write the *.emn file according to the IDFv3 spec
|
||||
// 3. Write the *.emp file according to the IDFv3 spec
|
||||
|
||||
std::string fname = TO_UTF8( aFullFileName );
|
||||
|
||||
wxFileName brdname( aFullFileName );
|
||||
wxFileName libname( aFullFileName );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user