Fix build with GCC.

This commit is contained in:
John Preston 2022-12-28 17:39:03 +04:00
parent 6c33f9218e
commit 28fd4eea95

View file

@ -833,7 +833,7 @@ void PreloadTextSpoilerMask() {
}
const SpoilerMessCached &DefaultTextSpoilerMask() {
static const auto once = [&] {
[[maybe_unused]] static const auto once = [&] {
PreloadTextSpoilerMask();
return 0;
}();
@ -866,7 +866,7 @@ void PreloadImageSpoiler() {
}
const SpoilerMessCached &DefaultImageSpoiler() {
static const auto once = [&] {
[[maybe_unused]] static const auto once = [&] {
PreloadImageSpoiler();
return 0;
}();