diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index fbf7ca1..14245f6 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -9,6 +9,9 @@ jobs: defaults: run: shell: powershell + env: + CL: /MP + CXXFLAGS: /WX strategy: fail-fast: true matrix: diff --git a/src/glog/logging.h.in b/src/glog/logging.h.in index 10bbf6a..178db8c 100644 --- a/src/glog/logging.h.in +++ b/src/glog/logging.h.in @@ -135,7 +135,7 @@ typedef unsigned __int64 uint64; @ac_google_end_namespace@ -struct LogMessageTime { +struct GOOGLE_GLOG_DLL_DECL LogMessageTime { LogMessageTime(): time_struct_(), timestamp_(0), usecs_(0), gmtoffset_(0) {} void setTimeInfo(struct::tm time_struct, time_t timestamp, int32_t usecs){ @@ -1940,7 +1940,14 @@ class GOOGLE_GLOG_DLL_DECL NullStreamFatal : public NullStream { NullStreamFatal() { } NullStreamFatal(const char* file, int line, const CheckOpString& result) : NullStream(file, line, result) { } +#if defined(_MSC_VER) +#pragma warning(push) +#pragma warning(disable : 4722) +#endif // _MSC_VER @ac_cv___attribute___noreturn@ ~NullStreamFatal() throw () { _exit(1); } +#if defined(_MSC_VER) +#pragma warning(pop) +#endif // _MSC_VER }; // Install a signal handler that will dump signal information and a stack