int access = wxS_DEFAULT;
#ifdef __UNIX__
// create the file with the same mode as the original one under Unix
- mode_t umaskOld;
+ mode_t umaskOld = 0; // just to suppress compiler warning
bool changedUmask;
struct stat st;
{
// file probably didn't exist, just create with default mode _using_
// user's umask (new files creation should respet umask)
- changedUmask = TRUE;
+ changedUmask = FALSE;
}
#endif // Unix
- bool ok = m_file.Open(m_strTemp, wxFile::write, access);
+ bool ok = m_file.Open(m_strTemp, wxFile::write, access);
#ifdef __UNIX__
if ( changedUmask )