[core] fix pedantic warning messages
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#import <mbgl/ios/MGLTypes.h>
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
class Settings_NSUserDefaults {
|
||||
public:
|
||||
Settings_NSUserDefaults();
|
||||
void load();
|
||||
void save();
|
||||
void clear();
|
||||
|
||||
public:
|
||||
double longitude = 0;
|
||||
double latitude = 0;
|
||||
double zoom = 0;
|
||||
double bearing = 0;
|
||||
double pitch = 0;
|
||||
|
||||
MGLUserTrackingMode userTrackingMode = MGLUserTrackingModeNone;
|
||||
bool showsUserLocation = false;
|
||||
|
||||
uint32_t debug = 0;
|
||||
};
|
||||
|
||||
}
|
||||
@@ -19,7 +19,7 @@ MBGL_DEFINE_ENUM_CLASS(EventSeverityClass, EventSeverity, {
|
||||
{ EventSeverity::Warning, "WARNING" },
|
||||
{ EventSeverity::Error, "ERROR" },
|
||||
{ EventSeverity(-1), "UNKNOWN" },
|
||||
});
|
||||
})
|
||||
|
||||
enum class Event : uint8_t {
|
||||
General,
|
||||
@@ -58,7 +58,7 @@ MBGL_DEFINE_ENUM_CLASS(EventClass, Event, {
|
||||
{ Event::Crash, "Crash" },
|
||||
{ Event::Glyph, "Glyph" },
|
||||
{ Event(-1), "Unknown" },
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
struct EventPermutation {
|
||||
|
||||
@@ -19,7 +19,7 @@ MBGL_DEFINE_ENUM_CLASS(SourceTypeClass, SourceType, {
|
||||
{ SourceType::GeoJSON, "geojson" },
|
||||
{ SourceType::Video, "video" },
|
||||
{ SourceType::Annotations, "annotations" },
|
||||
});
|
||||
})
|
||||
|
||||
namespace style {
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ constexpr double PITCH_MAX = M_PI / 3;
|
||||
constexpr double MIN_ZOOM = 0.0;
|
||||
constexpr double MAX_ZOOM = 25.5;
|
||||
|
||||
constexpr uint64_t DEFAULT_MAX_CACHE_SIZE = 50 * 1024 * 1024;;
|
||||
constexpr uint64_t DEFAULT_MAX_CACHE_SIZE = 50 * 1024 * 1024;
|
||||
|
||||
constexpr Duration DEFAULT_FADE_DURATION = Milliseconds(300);
|
||||
constexpr Seconds CLOCK_SKEW_RETRY_TIMEOUT { 30 };
|
||||
|
||||
Reference in New Issue
Block a user