Skip to content

Commit

Permalink
WebCore\DerivedSources\JSReadableStreamSource.cpp: warning: unused fu…
Browse files Browse the repository at this point in the history
…nction 'jsReadableStreamSource_controller'

https://bugs.webkit.org/show_bug.cgi?id=260376

Reviewed by Fujii Hironori.

Emit UNUSED_PARAM for the attributeGetterName to prevent compiler
warning in clang-cl.

* Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:
(GenerateAttributeGetterTrampolineDefinition):

Canonical link: https://commits.webkit.org/267420@main
  • Loading branch information
iangrunert authored and fujii committed Aug 29, 2023
1 parent 5ea6622 commit e693585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/WTF/wtf/Compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@

/* REFERENCED_FROM_ASM */

#if !defined(REFERENCED_FROM_ASM) && COMPILER(GCC_COMPATIBLE)
#if !defined(REFERENCED_FROM_ASM) && (COMPILER(GCC) || COMPILER(CLANG))
#define REFERENCED_FROM_ASM __attribute__((__used__))
#endif

Expand Down

0 comments on commit e693585

Please sign in to comment.