general: Fix assorted compiler warnings

This commit is contained in:
rdb
2024-10-14 12:06:35 +02:00
parent 777ab6746c
commit 61f8df2d7d
3 changed files with 3 additions and 2 deletions

View File

@@ -161,7 +161,7 @@ do_update() {
_last_level_index = view.get_level_index();
const PStatClientData *client_data = _monitor->get_client_data();
if (client_data->get_num_collectors() > _collector_items.size()) {
if ((size_t)client_data->get_num_collectors() > _collector_items.size()) {
_collector_items.resize(client_data->get_num_collectors(), std::make_pair(nullptr, nullptr));
}

View File

@@ -357,6 +357,7 @@ match_egg(EggFile *egg_file) const {
case KW_linear:
case KW_mipmap:
case KW_anisotropic:
case KW_srgb:
// These mean nothing to an egg file.
break;

View File

@@ -235,7 +235,7 @@ get_frame_number_after(double time, int start_at) const {
while (end < time) {
++i;
if (i >= _frames.size()) {
if ((size_t)i >= _frames.size()) {
break;
}
if (_frames[i] != nullptr) {