1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-05-28 09:41:32 +00:00
openmw/apps/components_tests
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
..
detournavigator Reduce a chance to have a deadlock in the AsyncNavMeshUpdater 2025-03-23 23:33:40 +01:00
esm Fix warning: -Wstring-compare 2025-04-28 22:07:00 +02:00
esm3 Add test for new ReadersCache functions 2025-04-11 17:30:56 +01:00
esm4 Split openmw_test_suite into openmw and components tests 2024-06-10 23:12:14 +02:00
esmloader Split openmw_test_suite into openmw and components tests 2024-06-10 23:12:14 +02:00
esmterrain Split openmw_test_suite into openmw and components tests 2024-06-10 23:12:14 +02:00
files Use temporary directory for tests output 2025-03-23 23:33:40 +01:00
fx Store Lua script path as VFS normalized 2024-09-15 13:53:20 +02:00
lua Keep MENU-registered input actions between games 2025-02-26 16:56:41 +01:00
misc Fix msvc warnings 2025-03-09 17:55:17 +01:00
nif Split openmw_test_suite into openmw and components tests 2024-06-10 23:12:14 +02:00
nifloader Use normalized path for KeyframeManager::get 2024-11-20 21:29:36 +01:00
nifosg Merge branch 'vfs_normalized_path_22' into 'master' 2024-12-01 21:45:01 +00:00
resource Split openmw_test_suite into openmw and components tests 2024-06-10 23:12:14 +02:00
sceneutil Split openmw_test_suite into openmw and components tests 2024-06-10 23:12:14 +02:00
serialization Split openmw_test_suite into openmw and components tests 2024-06-10 23:12:14 +02:00
settings Split openmw_test_suite into openmw and components tests 2024-06-10 23:12:14 +02:00
shader Use temporary directory for tests output 2025-03-23 23:33:40 +01:00
sqlite3 Split openmw_test_suite into openmw and components tests 2024-06-10 23:12:14 +02:00
toutf8 Split openmw_test_suite into openmw and components tests 2024-06-10 23:12:14 +02:00
vfs Split openmw_test_suite into openmw and components tests 2024-06-10 23:12:14 +02:00
CMakeLists.txt Add a test and address feedback 2024-10-06 11:32:24 +02:00
main.cpp Use temporary directory for tests output 2025-03-23 23:33:40 +01:00