Changeset 246095 in webkit
- Timestamp:
- Jun 4, 2019 8:14:20 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r246084 r246095 1 2019-06-04 Michael Catanzaro <mcatanzaro@igalia.com> 2 3 Fix miscellaneous build warnings 4 https://bugs.webkit.org/show_bug.cgi?id=198544 5 6 Reviewed by Don Olmstead. 7 8 Silence -Wclass-memaccess warning in this dangerous code. 9 10 * wasm/WasmInstance.cpp: 11 (JSC::Wasm::Instance::Instance): 12 1 13 2019-06-04 Yusuke Suzuki <ysuzuki@apple.com> 2 14 -
trunk/Source/JavaScriptCore/wasm/WasmInstance.cpp
r245765 r246095 56 56 for (unsigned i = 0; i < m_numImportFunctions; ++i) 57 57 new (importFunctionInfo(i)) ImportFunctionInfo(); 58 memset( m_globals.get(), 0, globalMemoryByteSize(m_module.get()));58 memset(static_cast<void*>(m_globals.get()), 0, globalMemoryByteSize(m_module.get())); 59 59 for (unsigned i = 0; i < m_module->moduleInformation().globals.size(); ++i) { 60 60 if (m_module.get().moduleInformation().globals[i].type == Anyref) -
trunk/Source/WebCore/ChangeLog
r246092 r246095 1 2019-06-04 Michael Catanzaro <mcatanzaro@igalia.com> 2 3 Fix miscellaneous build warnings 4 https://bugs.webkit.org/show_bug.cgi?id=198544 5 6 Reviewed by Don Olmstead. 7 8 Carefully silence -Wsign-compare warnings. 9 10 * contentextensions/DFABytecodeCompiler.cpp: 11 (WebCore::ContentExtensions::DFABytecodeCompiler::compile): 12 * inspector/InspectorCanvas.cpp: 13 (WebCore::InspectorCanvas::indexForData): 14 * xml/XSLStyleSheetLibxslt.cpp: 15 (WebCore::XSLStyleSheet::parseString): 16 1 17 2019-06-04 Keith Rollin <krollin@apple.com> 2 18 -
trunk/Source/WebCore/contentextensions/DFABytecodeCompiler.cpp
r219702 r246095 462 462 for (const auto& linkRecord : m_linkRecords) { 463 463 uint32_t destination = m_nodeStartOffsets[linkRecord.destinationNodeIndex]; 464 RELEASE_ASSERT(destination < st d::numeric_limits<int32_t>::max());464 RELEASE_ASSERT(destination < static_cast<uint32_t>(std::numeric_limits<int32_t>::max())); 465 465 int32_t distance = destination - linkRecord.instructionLocation; 466 466 ASSERT(abs(distance) <= abs(linkRecord.longestPossibleJump)); -
trunk/Source/WebCore/inspector/InspectorCanvas.cpp
r245179 r246095 433 433 }); 434 434 if (index != notFound) { 435 ASSERT(index < st d::numeric_limits<int>::max());435 ASSERT(index < static_cast<size_t>(std::numeric_limits<int>::max())); 436 436 return static_cast<int>(index); 437 437 } … … 527 527 } 528 528 529 ASSERT(index < st d::numeric_limits<int>::max());529 ASSERT(index < static_cast<size_t>(std::numeric_limits<int>::max())); 530 530 return static_cast<int>(index); 531 531 } -
trunk/Source/WebCore/xml/XSLStyleSheetLibxslt.cpp
r223476 r246095 146 146 Checked<unsigned, RecordOverflow> unsignedSize = string.length(); 147 147 unsignedSize *= sizeof(UChar); 148 if (unsignedSize.hasOverflowed() || unsignedSize.unsafeGet() > st d::numeric_limits<int>::max())148 if (unsignedSize.hasOverflowed() || unsignedSize.unsafeGet() > static_cast<unsigned>(std::numeric_limits<int>::max())) 149 149 return false; 150 150 -
trunk/Source/WebKit/ChangeLog
r246093 r246095 1 2019-06-04 Michael Catanzaro <mcatanzaro@igalia.com> 2 3 Fix miscellaneous build warnings 4 https://bugs.webkit.org/show_bug.cgi?id=198544 5 6 Reviewed by Don Olmstead. 7 8 Carefully silence -Wsign-compare warnings. 9 10 * NetworkProcess/cache/NetworkCacheData.cpp: 11 (WebKit::NetworkCache::readOrMakeSalt): 12 1 13 2019-06-04 Youenn Fablet <youenn@apple.com> 2 14 -
trunk/Source/WebKit/NetworkProcess/cache/NetworkCacheData.cpp
r245186 r246095 184 184 auto bytesRead = read(fd, salt.data(), salt.size()); 185 185 close(fd); 186 if (bytesRead != s alt.size()) {186 if (bytesRead != static_cast<ssize_t>(salt.size())) { 187 187 salt = makeSalt(); 188 188 189 189 unlink(cpath.data()); 190 190 fd = open(cpath.data(), O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); 191 bool success = write(fd, salt.data(), salt.size()) == s alt.size();191 bool success = write(fd, salt.data(), salt.size()) == static_cast<ssize_t>(salt.size()); 192 192 close(fd); 193 193 if (!success) -
trunk/Tools/ChangeLog
r246093 r246095 1 2019-06-04 Michael Catanzaro <mcatanzaro@igalia.com> 2 3 Fix miscellaneous build warnings 4 https://bugs.webkit.org/show_bug.cgi?id=198544 5 6 Reviewed by Don Olmstead. 7 8 When converting to PRIVATE include directories, we accidentally dropped SYSTEM here. The 9 naming convention used here is a bit confusing: the *_SYSTEM_INCLUDE_DIRECTORIES actually 10 uses both SYSTEM and PRIVATE. We should probably clarify this. 11 12 * TestWebKitAPI/PlatformGTK.cmake: 13 1 14 2019-06-04 Youenn Fablet <youenn@apple.com> 2 15 -
trunk/Tools/TestWebKitAPI/PlatformGTK.cmake
r246039 r246095 100 100 ) 101 101 102 set(TestJSC_SYSTEM_INCLUDE_DIRECTORIES 103 ${GLIB_INCLUDE_DIRS} 104 ${GTK3_INCLUDE_DIRS} 105 ) 106 102 107 set(TestJSC_PRIVATE_INCLUDE_DIRECTORIES 103 108 ${CMAKE_BINARY_DIR} 104 109 ${TESTWEBKITAPI_DIR} 105 ${GLIB_INCLUDE_DIRS}106 ${GTK3_INCLUDE_DIRS}107 110 ${THIRDPARTY_DIR}/gtest/include 108 111 ${FORWARDING_HEADERS_DIR}
Note: See TracChangeset
for help on using the changeset viewer.