Capital-Asterisk / longeronpp

"Longeron++" C++17 library for simple memory-efficient or 'data-oriented' structures
MIT License
32 stars 4 forks source link

warning: attributes at the beginning of statement are ignored #12

Closed jonesmz closed 1 year ago

jonesmz commented 2 years ago
/home/runner/work/osp-magnum/osp-magnum/3rdparty/longeronpp/src/longeron/id_management/registry_stl.hpp: In member function ‘IT_T lgrn::IdRegistryStl<ID_T, NO_AUTO_RESIZE, BITVIEW_T>::create(IT_T, ITB_T)’:
/home/runner/work/osp-magnum/osp-magnum/3rdparty/longeronpp/src/longeron/id_management/registry_stl.hpp:91:32: warning: attributes at the beginning of statement are ignored [-Wattributes]
   91 |             if (first != last) [[unlikely]]
      |                                ^~~~~~~~~~~~
/home/runner/work/osp-magnum/osp-magnum/3rdparty/longeronpp/src/longeron/id_management/registry_stl.hpp:101:18: warning: attributes at the beginning of statement are ignored [-Wattributes]
  101 |             else [[likely]]
      |                  ^~~~~~~~~~
Capital-Asterisk commented 1 year ago

Removed in c386ee6