* globals.cc (dos_file_warning): Set to false by default.

* path.cc (warn_msdos): Make static.  Drop test for dos_file_warning.
	(path_conv::check): Check for dos_file_warning here to avoid a function
	call in the default case.
This commit is contained in:
Corinna Vinschen 2014-10-28 10:44:49 +00:00
parent 09687ee963
commit e6a4318d78
4 changed files with 13 additions and 4 deletions

View file

@ -1,3 +1,10 @@
2014-10-28 Corinna Vinschen <corinna@vinschen.de>
* globals.cc (dos_file_warning): Set to false by default.
* path.cc (warn_msdos): Make static. Drop test for dos_file_warning.
(path_conv::check): Check for dos_file_warning here to avoid a function
call in the default case.
2014-10-27 Corinna Vinschen <corinna@vinschen.de>
* dcrt0.cc (cygwin_atexit): Add workaround for broken atexit calls

View file

@ -69,7 +69,7 @@ int NO_COPY dynamically_loaded;
/* Some CYGWIN environment variable variables. */
bool allow_glob = true;
bool detect_bloda;
bool dos_file_warning = true;
bool dos_file_warning;
bool ignore_case_with_glob;
bool pipe_byte;
bool reset_com;

View file

@ -517,10 +517,10 @@ path_conv::get_wide_win32_path (PWCHAR wc)
return wc;
}
void
static void
warn_msdos (const char *src)
{
if (user_shared->warned_msdos || !dos_file_warning || !cygwin_finished_initializing)
if (user_shared->warned_msdos || !cygwin_finished_initializing)
return;
tmp_pathbuf tp;
char *posix_path = tp.c_get ();
@ -1202,7 +1202,7 @@ path_conv::check (const char *src, unsigned opt,
if (tail < path_end && tail > path_copy + 1)
*tail = '/';
set_normalized_path (path_copy);
if (is_msdos && !(opt & PC_NOWARN))
if (is_msdos && dos_file_warning && !(opt & PC_NOWARN))
warn_msdos (src);
}

View file

@ -46,6 +46,8 @@ What changed:
add PATH variable with Cygwin installation directory as content to Windows
environment to allow loading of Cygwin system DLLs.
- Disable CYGWIN "dosfilewarning" option by default.
- Improve various header files for C++- and standards-compliance.
- Doug Lea malloc implementation update from 2.8.3 to the latest 2.8.6.