mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 18:46:03 +00:00
LibRegex: Use NO_UNIQUE_ADDRESS
in RegexMatch for Windows support
Clang's `x86_64-pc-windows-msvc` target requires `[[msvc::no_unique_address]]`, which is properly set in the `NO_UNIQUE_ADDRESS` macro in `AK/Platform.h`. Without this, building on Windows fails due to `-Wunknown-attributes`.
This commit is contained in:
parent
fc6237325b
commit
0253342c1a
Notes:
github-actions[bot]
2025-05-12 09:23:50 +00:00
Author: https://github.com/ayeteadoe 🔰
Commit: 0253342c1a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4667
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/alimpfard
1 changed files with 2 additions and 2 deletions
|
@ -301,8 +301,8 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
[[no_unique_address]] Variant<StringView, Utf16View> m_view { StringView {} };
|
||||
[[no_unique_address]] bool m_unicode { false };
|
||||
NO_UNIQUE_ADDRESS Variant<StringView, Utf16View> m_view { StringView {} };
|
||||
NO_UNIQUE_ADDRESS bool m_unicode { false };
|
||||
};
|
||||
|
||||
class Match final {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue