Add back unused-variable warning

This commit is contained in:
Patrick Nicolas
2026-10-16 08:03:21 +02:00
parent 650ca30874
commit 879c50c743
26 changed files with 24 additions and 70 deletions
-1
View File
@@ -77,7 +77,6 @@ glm::quat cubic_spline(const glm::quat & a, const glm::quat & vb, const glm::qua
template <auto components::node::* Field>
void apply_track(entt::registry & scene, const components::animation_track_impl<Field> & track, float current_time)
{
entt::entity target = track.target;
auto interpolation = track.interpolation;
auto field = track.field;
auto & value = scene.get<components::node>(track.target).*field;
-1
View File
@@ -560,7 +560,6 @@ void imgui_context::initialize_fonts()
std::vector<imgui_context::controller_state> imgui_context::read_controllers_state(XrTime display_time)
{
float scroll_scale = io.DeltaTime * constants::gui::scroll_ratio;
size_t new_focused_controller = focused_controller;
std::vector<controller_state> new_states;
new_states.resize(controllers.size());
-5
View File
@@ -198,7 +198,6 @@ std::vector<glm::dvec4> read_vertex_attribute_aux2(const fastgltf::Asset & asset
std::vector<glm::dvec4> output;
output.resize(accessor.count);
size_t index = 0;
switch (fastgltf::getNumComponents(accessor.type))
{
case 1:
@@ -549,7 +548,6 @@ class loader_context
fastgltf::Asset & gltf;
vk::raii::PhysicalDevice physical_device;
vk::raii::Device & device;
thread_safe<vk::raii::Queue> & queue;
image_loader loader;
const std::map<std::tuple<fastgltf::Category, size_t, std::string>, std::string> & extras;
@@ -581,7 +579,6 @@ public:
gltf(gltf),
physical_device(physical_device),
device(device),
queue(queue),
loader(device, physical_device, queue, queue_family_index),
extras(extras)
{
@@ -1080,7 +1077,6 @@ public:
break;
}
size_t count = time.count;
switch (channel.path)
{
// TODO: templatize the switch
@@ -1264,7 +1260,6 @@ static void write_cache_entry(const std::filesystem::path & path, const cache_en
{
auto mtime = std::chrono::file_clock::to_sys(std::filesystem::last_write_time(entry.filename));
auto timestamp = std::chrono::duration_cast<std::chrono::seconds>(mtime.time_since_epoch()).count();
auto size = entry.size;
json << ",\"timestamp\":" << timestamp;
}