diff --git a/src/mac/carbon/dirmac.cpp b/src/mac/carbon/dirmac.cpp index 729be9473d..9c8f191681 100644 --- a/src/mac/carbon/dirmac.cpp +++ b/src/mac/carbon/dirmac.cpp @@ -118,7 +118,7 @@ wxDirData::wxDirData(const wxString& dirname) m_CPB.hFileInfo.ioNamePtr = m_name ; m_index = 0 ; - FSpGetDirectoryID( &fsspec , &m_dirId , &m_isDir ) ; + OSErr err = FSpGetDirectoryID( &fsspec , &m_dirId , &m_isDir ) ; } wxDirData::~wxDirData() diff --git a/src/mac/dirmac.cpp b/src/mac/dirmac.cpp index 729be9473d..9c8f191681 100644 --- a/src/mac/dirmac.cpp +++ b/src/mac/dirmac.cpp @@ -118,7 +118,7 @@ wxDirData::wxDirData(const wxString& dirname) m_CPB.hFileInfo.ioNamePtr = m_name ; m_index = 0 ; - FSpGetDirectoryID( &fsspec , &m_dirId , &m_isDir ) ; + OSErr err = FSpGetDirectoryID( &fsspec , &m_dirId , &m_isDir ) ; } wxDirData::~wxDirData()