Bug 224231

Summary: Compiler warnings that need to be fixed
Product: WebKit Reporter: Eleni Maria Stea <estea>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Trivial CC: alecflett, beidson, esprehn+autocc, estea, ews-watchlist, glenn, gyuyoung.kim, hi, joepeck, jsbell, macpherson, menard, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Linux   
Attachments:
Description Flags
Proposed patch for 224231
none
Patch estea: review?

Description Eleni Maria Stea 2021-04-06 03:01:30 PDT
--- Description ---

There are some compiler warnings that need to be fixed:

/WebKit/Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:
 WTFLogAlways("SQLiteIDBBackingStore::databasesSizeForDirectory filePath='%s', database='%s', size=%" PRIu64, file.utf8().data(), databaseName.utf8().data(), fileSize); 
last argument should be long long int.


WebKit/Source/WebCore/inspector/InspectorOverlay.cpp:
FloatLine lineBetweenColumnBottoms = { columnStartLine.end(), previousColumnEndLine.end() };
is not used.

Functions:
WebCore::FloatSize WebCore::expectedSizeForLayoutLabel(WTF::String, WebCore::InspectorOverlay::LabelArrowDirection, float) in /Source/WebCore/inspector/InspectorOverlay.cpp

and

WebCore::Color WebCore::CSSPropertyParserHelpers::mixColorComponents(WebCore::CSSPropertyParserHelpers::ColorMixColorSpace, const WebCore::CSSPropertyParserHelpers::ColorMixComponent&, const WebCore::CSSPropertyParserHelpers::ColorMixComponent&) in Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp

don't have a return type.
Comment 1 Eleni Maria Stea 2021-04-06 03:50:13 PDT
Created attachment 425260 [details]
Proposed patch for 224231

proposed patch, fixes compiler warnings
Comment 2 Eleni Maria Stea 2021-04-06 07:54:00 PDT
broke the Apple build, working on v2
Comment 3 Joseph Pecoraro 2021-04-08 11:10:36 PDT
Comment on attachment 425260 [details]
Proposed patch for 224231

View in context: https://bugs.webkit.org/attachment.cgi?id=425260&action=review

> Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:1278
> +                WTFLogAlways("SQLiteIDBBackingStore::databasesSizeForDirectory filePath='%s', database='%s', size=%l" PRIu64, file.utf8().data(), databaseName.utf8().data(), fileSize);

Here the `PRIu64` is the format string value. It is like `%ull`. Perhaps an include is missing for your particular port?
Comment 4 Radar WebKit Bug Importer 2021-04-13 03:02:12 PDT
<rdar://problem/76584339>
Comment 5 Eleni Maria Stea 2021-04-27 05:36:41 PDT
Created attachment 427137 [details]
Patch
Comment 6 Eleni Maria Stea 2021-04-27 05:41:07 PDT
(In reply to Joseph Pecoraro from comment #3)
> Comment on attachment 425260 [details]
> Proposed patch for 224231
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=425260&action=review
> 
> > Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:1278
> > +                WTFLogAlways("SQLiteIDBBackingStore::databasesSizeForDirectory filePath='%s', database='%s', size=%l" PRIu64, file.utf8().data(), databaseName.utf8().data(), fileSize);
> 
> Here the `PRIu64` is the format string value. It is like `%ull`. Perhaps an
> include is missing for your particular port?

You must be right, I've changed my patch to fix the other two warnings, and I'm going to investigate this further. Thank you!