Remove MBGL_UNUSED (#2172)

This commit is contained in:
Bart Louwers
2024-04-03 04:48:52 +02:00
committed by GitHub
parent 9f8ae7a98b
commit f9defa4e83
2 changed files with 2 additions and 14 deletions

View File

@@ -12,12 +12,6 @@
#include <thread>
#include <random>
#if defined(__GNUC__)
#define MBGL_UNUSED __attribute__((unused))
#else
#define MBGL_UNUSED
#endif
using namespace std::literals::string_literals;
using namespace mbgl;
using mapbox::sqlite::ResultCode;
@@ -50,7 +44,7 @@ static FixtureLog::Message error(ResultCode code, const char* message) {
return {EventSeverity::Error, Event::Database, static_cast<int64_t>(code), message};
}
static MBGL_UNUSED FixtureLog::Message warning(ResultCode code, const char* message) {
[[maybe_unused]] static FixtureLog::Message warning(ResultCode code, const char* message) {
return {EventSeverity::Warning, Event::Database, static_cast<int64_t>(code), message};
}