mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:17:36 +00:00
AK: Fix Clang 18 -Wdeprecated-literal-operator
warning
The proper syntax for defining user-defined literals does not require a space between the `operator""` token and the operator name: > error: identifier 'sv' preceded by whitespace in a literal operator > declaration is deprecated
This commit is contained in:
parent
6d331389ad
commit
075ce53d14
3 changed files with 4 additions and 4 deletions
|
@ -33,7 +33,7 @@ To implement this yourself:
|
|||
```
|
||||
- In addition, you will need to also add some compile options that Serenity uses to ensure no warnings or errors:
|
||||
```cmake
|
||||
add_compile_options(-Wno-literal-suffix) # AK::StringView defines operator"" sv, which GCC complains does not have an underscore.
|
||||
add_compile_options(-Wno-literal-suffix) # AK::StringView defines operator""sv, which GCC complains does not have an underscore.
|
||||
add_compile_options(-fno-gnu-keywords) # JS::Value has a method named typeof, which also happens to be a GNU keyword.
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue