Changeset 239093 in webkit
- Timestamp:
- Dec 11, 2018 5:34:05 PM (5 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r239078 r239093 1 2018-12-11 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 [Win][Clang] Fix compilation warnings of WTF 4 https://bugs.webkit.org/show_bug.cgi?id=192583 5 6 Reviewed by Alex Christensen. 7 8 clang-cl reports the following warnings. 9 10 > [92/206] Building CXX object Source\WTF\wtf\CMakeFiles\WTF.dir\StackBounds.cpp.obj 11 > ..\..\Source\WTF\wtf\StackBounds.cpp(163,48): warning: missing field 'AllocationBase' initializer [-Wmissing-field-initializers] 12 > MEMORY_BASIC_INFORMATION stackOrigin = { 0 }; 13 > ^ 14 > 1 warning generated. 15 > [160/206] Building CXX object Source\WTF\wtf\CMakeFiles\WTF.dir\win\RunLoopWin.cpp.obj 16 > ..\..\Source\WTF\wtf\win\RunLoopWin.cpp(34,54): warning: ISO C++11 does not allow conversion from string literal to 'const LPWSTR' (aka 'wchar_t *const') [-Wwritable-strings] 17 > static const LPWSTR kRunLoopMessageWindowClassName = L"RunLoopMessageWindow"; 18 > ^ 19 > ..\..\Source\WTF\wtf\win\RunLoopWin.cpp(86,32): warning: missing field 'lpfnWndProc' initializer [-Wmissing-field-initializers] 20 > WNDCLASS windowClass = { 0 }; 21 > ^ 22 > 2 warnings generated. 23 > [175/206] Building CXX object Source\WTF\wtf\CMakeFiles\WTF.dir\DateMath.cpp.obj 24 > ..\..\Source\WTF\wtf\DateMath.cpp(125,20): warning: unused function 'getLocalTime' [-Wunused-function] 25 > static inline void getLocalTime(const time_t* localTime, struct tm* localTM) 26 > ^ 27 > 1 warning generated. 28 29 * wtf/DateMath.cpp: 30 (WTF::getLocalTime): Defined only if used. 31 * wtf/StackBounds.cpp: 32 (WTF::StackBounds::currentThreadStackBoundsInternal): Initialize stackOrigin with '{ }'. 33 * wtf/win/RunLoopWin.cpp: Change the type of kRunLoopMessageWindowClassName to LPCWSTR. 34 (WTF::RunLoop::registerRunLoopMessageWindowClass): Initialize windowClass with '{ }'. 35 1 36 2018-12-11 Andy Estes <aestes@apple.com> 2 37 -
trunk/Source/WTF/wtf/DateMath.cpp
r237099 r239093 123 123 }; 124 124 125 #if !OS(WINDOWS) || HAVE(TM_GMTOFF) 125 126 static inline void getLocalTime(const time_t* localTime, struct tm* localTM) 126 127 { 127 #if COMPILER(MSVC) 128 localtime_s(localTM, localTime); 129 #elif HAVE(LOCALTIME_R) 128 #if HAVE(LOCALTIME_R) 130 129 localtime_r(localTime, localTM); 131 130 #else … … 133 132 #endif 134 133 } 134 #endif 135 135 136 136 bool isLeapYear(int year) -
trunk/Source/WTF/wtf/StackBounds.cpp
r237099 r239093 161 161 { 162 162 ASSERT(stackDirection() == StackDirection::Downward); 163 MEMORY_BASIC_INFORMATION stackOrigin = { 0};163 MEMORY_BASIC_INFORMATION stackOrigin { }; 164 164 VirtualQuery(&stackOrigin, &stackOrigin, sizeof(stackOrigin)); 165 165 // stackOrigin.AllocationBase points to the reserved stack memory base address. -
trunk/Source/WTF/wtf/win/RunLoopWin.cpp
r237099 r239093 32 32 33 33 static const UINT PerformWorkMessage = WM_USER + 1; 34 static const LP WSTR kRunLoopMessageWindowClassName = L"RunLoopMessageWindow";34 static const LPCWSTR kRunLoopMessageWindowClassName = L"RunLoopMessageWindow"; 35 35 36 36 LRESULT CALLBACK RunLoop::RunLoopWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) … … 84 84 // FIXME: This really only needs to be called once. 85 85 86 WNDCLASS windowClass = { 0};86 WNDCLASS windowClass { }; 87 87 windowClass.lpfnWndProc = RunLoop::RunLoopWndProc; 88 88 windowClass.cbWndExtra = sizeof(RunLoop*);
Note: See TracChangeset
for help on using the changeset viewer.