mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
LibCrypto: Don't cause errors when function unused
Any (future) program that includes this header would fail to compile, because the private symbol 'kind_name' is defined, along with a bunch of code, but unused. A good way to see this is by #include'ing LibCrypto/ASN1/ASN1.h in an unrelated .cpp-file, for example Userland/md.cpp. No other headers seem to have this problem.
This commit is contained in:
parent
2a2630edc9
commit
23a43d10f3
Notes:
sideshowbarker
2024-07-19 03:16:50 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/23a43d10f39 Pull-request: https://github.com/SerenityOS/serenity/pull/3264
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ enum class Kind {
|
|||
SetOf
|
||||
};
|
||||
|
||||
static StringView kind_name(Kind kind)
|
||||
static inline StringView kind_name(Kind kind)
|
||||
{
|
||||
switch (kind) {
|
||||
case Kind::Eol:
|
||||
|
|
Loading…
Reference in a new issue