fix(build): silenciats warnings en Release
This commit is contained in:
1 parent
1ba17f5225
commit
f9e09d968d
2 files changed
+8
-4
No files matched your search
@@ -368,6 +368,10 @@ if(BUILD_TESTS)
|
||||
)
|
||||
target_link_libraries(test_entities_smoke PRIVATE SDL3::SDL3)
|
||||
target_compile_options(test_entities_smoke PRIVATE -Wall -Wextra -Wpedantic)
|
||||
# GCC 14 + -O3 + fkyaml header-only inlinia profundament std::map::clear i
|
||||
# dispara fals positius -Warray-bounds dins <bits/stl_tree.h>. El warning és
|
||||
# del codi de tercers (libstdc++ vist a través de fkyaml), no del test.
|
||||
target_compile_options(test_entities_smoke PRIVATE -Wno-array-bounds)
|
||||
enable_testing()
|
||||
add_test(NAME entities_smoke
|
||||
COMMAND test_entities_smoke
|
||||
|
||||
@@ -92,7 +92,7 @@ namespace {
|
||||
const std::vector<std::vector<int>> data = {
|
||||
{1, 2, 3}, {4, 230, 6}, {7, 8, 9}
|
||||
};
|
||||
const bool OK = TilemapWriter::saveDataBlock(PATH, data);
|
||||
[[maybe_unused]] const bool OK = TilemapWriter::saveDataBlock(PATH, data);
|
||||
assert(OK);
|
||||
|
||||
const auto AFTER = readFile(PATH);
|
||||
@@ -109,7 +109,7 @@ namespace {
|
||||
const std::vector<std::vector<int>> data = {
|
||||
{10, 20, 30}, {40, 231, 60}, {70, 80, 90}
|
||||
};
|
||||
const bool OK = TilemapWriter::saveDataBlock(PATH, data);
|
||||
[[maybe_unused]] const bool OK = TilemapWriter::saveDataBlock(PATH, data);
|
||||
assert(OK);
|
||||
|
||||
const auto AFTER = readFile(PATH);
|
||||
@@ -137,7 +137,7 @@ namespace {
|
||||
{230, 1, 1},
|
||||
{1, 1, 1}
|
||||
};
|
||||
const bool OK = TilemapWriter::saveDataBlock(PATH, data);
|
||||
[[maybe_unused]] const bool OK = TilemapWriter::saveDataBlock(PATH, data);
|
||||
assert(OK);
|
||||
const auto AFTER = readFile(PATH);
|
||||
|
||||
@@ -156,7 +156,7 @@ namespace {
|
||||
const auto BEFORE = readFile(PATH);
|
||||
|
||||
const std::vector<std::vector<int>> data = {{1, 2, 3}};
|
||||
const bool OK = TilemapWriter::saveDataBlock(PATH, data);
|
||||
[[maybe_unused]] const bool OK = TilemapWriter::saveDataBlock(PATH, data);
|
||||
assert(!OK);
|
||||
|
||||
const auto AFTER = readFile(PATH);
|
||||
|
||||
Reference in new issue
Block a user