1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-05-24 15:11:29 +00:00
openmw/apps
elsid b5f8a0ecdb
Fix warning: -Wstring-compare
In file included from ../../../components/esm/defs.hpp:7,
                 from ../../../apps/components_tests/esm/test_fixed_string.cpp:1:
In function 'bool ESM::operator==(const FixedString<capacity>&, const char (&)[rhsSize]) [with long unsigned int capacity = 4; long unsigned int rhsSize = 12]',
    inlined from 'virtual void {anonymous}::EsmFixedString_empty_strings_Test::TestBody()' at ../../../apps/components_tests/esm/test_fixed_string.cpp:82:13:
../../../components/esm/esmcommon.hpp:142:85: error: 'int strncmp(const char*, const char*, size_t)' of strings of length 0 and 4 and bound of 4 evaluates to nonzero [-Werror=string-compare]
  142 |         return strnlen(rhs, rhsSize) == strnlen(lhs.mData, capacity) && std::strncmp(lhs.mData, rhs, capacity) == 0;
      |                                                                         ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
2025-04-28 22:07:00 +02:00
..
benchmarks Fix clang-analyzer-deadcode.DeadStores 2025-04-05 12:55:17 +02:00
bsatool Install tools left out on Windows 2025-01-11 19:36:24 +00:00
bulletobjecttool Remove redundant using namespace Fallback 2025-04-18 12:27:37 +02:00
components_tests Fix warning: -Wstring-compare 2025-04-28 22:07:00 +02:00
esmtool Install tools left out on Windows 2025-01-11 19:36:24 +00:00
essimporter Modernise Boost CMake stuff 2024-08-23 14:06:13 +01:00
launcher Merge branch 'dont-redraw-the-whole-gui-every-time-we-change-the-tiniest-thing' into 'master' 2025-04-09 11:19:32 +00:00
mwiniimporter Remove vestigial Boost libraries 2024-08-23 14:06:13 +01:00
navmeshtool Do not build navmeshtool translation units twice 2025-04-24 23:03:07 +02:00
niftest Install tools left out on Windows 2025-01-11 19:36:24 +00:00
opencs Remove redundant using namespace Fallback 2025-04-18 12:27:37 +02:00
opencs_tests Use temporary directory for tests output 2025-03-23 23:33:40 +01:00
openmw Use string_view for sIdleSelectToGroupName 2025-04-24 23:01:30 +02:00
openmw_tests Use temporary directory for tests output 2025-03-23 23:33:40 +01:00
wizard Move from qt_wrap_ui to AUTOUIC for launcher and wizard 2024-11-10 20:38:14 +01:00
doc.hpp first set of additional doxygen comments 2010-09-25 15:03:53 +02:00