mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +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
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ enum class Kind {
|
||||||
SetOf
|
SetOf
|
||||||
};
|
};
|
||||||
|
|
||||||
static StringView kind_name(Kind kind)
|
static inline StringView kind_name(Kind kind)
|
||||||
{
|
{
|
||||||
switch (kind) {
|
switch (kind) {
|
||||||
case Kind::Eol:
|
case Kind::Eol:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue