Bug 255504 - [Clang][Win][JSC] dfg/DFGJITCode.h(163,18): warning: unqualified friend declaration referring to type outside of the nearest enclosing namespace is a Microsoft extension
Summary: [Clang][Win][JSC] dfg/DFGJITCode.h(163,18): warning: unqualified friend decla...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Fujii Hironori
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-04-16 22:36 PDT by Fujii Hironori
Modified: 2023-04-16 22:57 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fujii Hironori 2023-04-16 22:36:58 PDT
[Clang][Win][JSC] dfg/DFGJITCode.h(163,18): warning: unqualified friend declaration referring to type outside of the nearest enclosing namespace is a Microsoft extension

clang-cl reports the following 2 warnings.

[1235/6540] Building CXX object Source\JavaScriptCore\CMakeFiles\JavaScriptCore.dir\__\__\JavaScriptCore\DerivedSources\unified-sources\UnifiedSource-f0a787a9-11.cpp.obj
In file included from C:\home\webkit\gc\WebKitBuild\Debug\JavaScriptCore\DerivedSources\unified-sources\UnifiedSource-f0a787a9-11.cpp:2:
In file included from C:\home\webkit\gc\Source\JavaScriptCore\bytecode/Repatch.cpp:34:
In file included from C:\home\webkit\gc\Source\JavaScriptCore\dfg\DFGSpeculativeJIT.h:31:
In file included from C:\home\webkit\gc\Source\JavaScriptCore\dfg/DFGAbstractInterpreter.h:31:
In file included from C:\home\webkit\gc\Source\JavaScriptCore\dfg/DFGGraph.h:37:
In file included from C:\home\webkit\gc\Source\JavaScriptCore\dfg/DFGPlan.h:35:
C:\home\webkit\gc\Source\JavaScriptCore\dfg/DFGJITCode.h(163,18): warning: unqualified friend declaration referring to type outside of the nearest enclosing namespace is a Microsoft extension; add a nested name specifier [-Wmicrosoft-unqualified-friend]
    friend class LLIntOffsetsExtractor;
                 ^
                 ::JSC::
In file included from C:\home\webkit\gc\WebKitBuild\Debug\JavaScriptCore\DerivedSources\unified-sources\UnifiedSource-f0a787a9-11.cpp:2:
In file included from C:\home\webkit\gc\Source\JavaScriptCore\bytecode/Repatch.cpp:34:
C:\home\webkit\gc\Source\JavaScriptCore\dfg\DFGSpeculativeJIT.h(1032,5): warning: non-void function does not return a value [-Wreturn-type]
    }
    ^
2 warnings generated.
Comment 1 Fujii Hironori 2023-04-16 22:42:33 PDT
Pull request: https://github.com/WebKit/WebKit/pull/12785
Comment 2 EWS 2023-04-16 22:56:11 PDT
Committed 263013@main (c778044f0f66): <https://commits.webkit.org/263013@main>

Reviewed commits have been landed. Closing PR #12785 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2023-04-16 22:57:18 PDT
<rdar://problem/108121881>