Bug 192688 - [WinCairo][Clang] DLLLauncherMain.cpp: warning: unused function 'prependPath' and 'appleApplicationSupportDirectory'
Summary: [WinCairo][Clang] DLLLauncherMain.cpp: warning: unused function 'prependPath'...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Fujii Hironori
URL:
Keywords:
Depends on:
Blocks: 171618
  Show dependency treegraph
 
Reported: 2018-12-13 18:58 PST by Fujii Hironori
Modified: 2018-12-13 23:56 PST (History)
11 users (show)

See Also:


Attachments
Patch (4.50 KB, patch)
2018-12-13 20:05 PST, Fujii Hironori
no flags Details | Formatted Diff | Diff
Patch for landing (5.65 KB, patch)
2018-12-13 21:53 PST, Fujii Hironori
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fujii Hironori 2018-12-13 18:58:41 PST
clang-cl reports the following warnings:

> [1514/6308] Building CXX object Source\JavaScriptCore\shell\CMakeFiles\testRegExp.dir\DLLLauncherMain.cpp.obj
> ..\..\Source\JavaScriptCore\shell\DLLLauncherMain.cpp(83,21):  warning: unused function 'appleApplicationSupportDirectory' [-Wunused-function]
> static std::wstring appleApplicationSupportDirectory()
>                     ^
> ..\..\Source\JavaScriptCore\shell\DLLLauncherMain.cpp(99,13):  warning: unused function 'prependPath' [-Wunused-function]
> static bool prependPath(const std::wstring& directoryToPrepend)
>             ^
> 2 warnings generated.


> [4750/6308] Building CXX object Tools\ImageDiff\CMakeFiles\ImageDiff.dir\__\win\DLLLauncher\DLLLauncherMain.cpp.obj
> ..\..\Tools\win\DLLLauncher\DLLLauncherMain.cpp(82,16):  warning: unused function 'appleApplicationSupportDirectory' [-Wunused-function]
> static wstring appleApplicationSupportDirectory()
>                ^
> ..\..\Tools\win\DLLLauncher\DLLLauncherMain.cpp(98,13):  warning: unused function 'prependPath' [-Wunused-function]
> static bool prependPath(const wstring& directoryToPrepend)
>             ^
> 2 warnings generated.
Comment 1 Fujii Hironori 2018-12-13 20:05:06 PST
Created attachment 357291 [details]
Patch
Comment 2 Ross Kirsling 2018-12-13 21:08:58 PST
Comment on attachment 357291 [details]
Patch

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

> Source/JavaScriptCore/shell/DLLLauncherMain.cpp:102
> +#if !defined(WIN_CAIRO)
>  static bool prependPath(const std::wstring& directoryToPrepend)

Might be nice to rearrange so that we don't need to add two #if blocks, but it's your call.
Comment 3 Fujii Hironori 2018-12-13 21:53:13 PST
Created attachment 357301 [details]
Patch for landing
Comment 4 Fujii Hironori 2018-12-13 23:55:56 PST
Comment on attachment 357301 [details]
Patch for landing

Clearing flags on attachment: 357301

Committed r239200: <https://trac.webkit.org/changeset/239200>
Comment 5 Fujii Hironori 2018-12-13 23:55:59 PST
All reviewed patches have been landed.  Closing bug.