Bug 224231 - Compiler warnings that need to be fixed
Summary: Compiler warnings that need to be fixed
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Linux
: P2 Trivial
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-04-06 03:01 PDT by Eleni Maria Stea
Modified: 2021-04-27 05:41 PDT (History)
13 users (show)

See Also:


Attachments
Proposed patch for 224231 (5.09 KB, patch)
2021-04-06 03:50 PDT, Eleni Maria Stea
no flags Details | Formatted Diff | Diff
Patch (2.63 KB, patch)
2021-04-27 05:36 PDT, Eleni Maria Stea
estea: review?
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!