diff options
author | B Stack <bgstack15@gmail.com> | 2019-04-12 08:05:57 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2019-04-12 08:05:57 -0400 |
commit | 3a66f25c648c798d472f0de3b40c36a64fe75252 (patch) | |
tree | 603b0cb89ed5e4bb43725079c38c26a84c9f1425 /zen | |
parent | Merge branch '10.10' into 'master' (diff) | |
download | FreeFileSync-3a66f25c648c798d472f0de3b40c36a64fe75252.tar.gz FreeFileSync-3a66f25c648c798d472f0de3b40c36a64fe75252.tar.bz2 FreeFileSync-3a66f25c648c798d472f0de3b40c36a64fe75252.zip |
10.11
Diffstat (limited to 'zen')
-rw-r--r-- | zen/file_traverser.cpp | 2 | ||||
-rw-r--r-- | zen/legacy_compiler.h | 1 | ||||
-rw-r--r-- | zen/shutdown.cpp | 2 | ||||
-rw-r--r-- | zen/thread.cpp | 2 |
4 files changed, 3 insertions, 4 deletions
diff --git a/zen/file_traverser.cpp b/zen/file_traverser.cpp index cc6e0c0b..2d2a0cce 100644 --- a/zen/file_traverser.cpp +++ b/zen/file_traverser.cpp @@ -39,7 +39,7 @@ void zen::traverseFolder(const Zstring& dirPath, return; THROW_LAST_FILE_ERROR(replaceCpy(_("Cannot read directory %x."), L"%x", fmtPath(dirPath)), L"readdir"); - //don't retry but restart dir traversal on error! https://blogs.msdn.microsoft.com/oldnewthing/20140612-00/?p=753/ + //don't retry but restart dir traversal on error! https://devblogs.microsoft.com/oldnewthing/20140612-00/?p=753/ } //don't return "." and ".." diff --git a/zen/legacy_compiler.h b/zen/legacy_compiler.h index 54605945..5b69ed94 100644 --- a/zen/legacy_compiler.h +++ b/zen/legacy_compiler.h @@ -7,7 +7,6 @@ #ifndef LEGACY_COMPILER_H_839567308565656789 #define LEGACY_COMPILER_H_839567308565656789 -//#include <span> //requires C++20 namespace std diff --git a/zen/shutdown.cpp b/zen/shutdown.cpp index cd37d57c..aecd4121 100644 --- a/zen/shutdown.cpp +++ b/zen/shutdown.cpp @@ -36,7 +36,7 @@ void zen::terminateProcess(int exitCode) std::exit(exitCode); //[[noreturn]]; "Stack is not unwound: destructors of variables with automatic storage duration are not called." => perfect //don't use std::abort() => crashes process with "EXC_CRASH (SIGABRT)" on macOS for (;;) //why still here?? => crash deliberately! - *reinterpret_cast<volatile int*>(0) = 0; //crude but at least we'll get crash dumps if it happens + *reinterpret_cast<volatile int*>(0) = 0; //crude but at least we'll get crash dumps if it ever happens } diff --git a/zen/thread.cpp b/zen/thread.cpp index 08bfaa25..49c6d9b3 100644 --- a/zen/thread.cpp +++ b/zen/thread.cpp @@ -26,7 +26,7 @@ namespace uint64_t getThreadIdNative() { const pid_t tid = ::syscall(SYS_gettid); //no-fail - //"Invalid thread and process IDs": https://blogs.msdn.microsoft.com/oldnewthing/20040223-00/?p=40503 + //"Invalid thread and process IDs": https://devblogs.microsoft.com/oldnewthing/20040223-00/?p=40503 //if (tid == 0) -> not sure this holds on Linux, too! // throw std::runtime_error(std::string(__FILE__) + "[" + numberTo<std::string>(__LINE__) + "] Failed to get thread ID."); static_assert(sizeof(uint64_t) >= sizeof(tid)); |