1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +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:
Ben Wiederhake 2020-08-22 21:11:21 +02:00 committed by Andreas Kling
parent 2a2630edc9
commit 23a43d10f3

View file

@ -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: