Ver código fonte

storage: suppress a warning due to unused variables

skypjack 2 meses atrás
pai
commit
ecbe39b8eb
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/entt/entity/storage.hpp

+ 1 - 1
src/entt/entity/storage.hpp

@@ -317,7 +317,7 @@ protected:
      * @param last An iterator past the last element of the range of entities.
      */
     void pop(underlying_iterator first, underlying_iterator last) override {
-        for(allocator_type allocator{get_allocator()}; first != last; ++first) {
+        for([[maybe_unused]] allocator_type allocator{get_allocator()}; first != last; ++first) {
             // cannot use first.index() because it would break with cross iterators
             auto &elem = element_at(base_type::index(*first));