Skip to content

Commit 2471945

Browse files
committed
Merge pull request #175 from tetengo/compilation_errors
Correct compilation errors #174 (cherry picked from commit adce02e)
1 parent d9f70a3 commit 2471945

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

library/property/test/src/usage_tetengo.property.saveLoad_c.c

+2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ void usage_tetengo_property_saveLoad()
5050
{
5151
/* The value cannot be yet obtained from the property set for getting. */
5252
const size_t value_length1 = tetengo_property_propertySet_getString(p_props_for_getting, "foo", NULL, 0);
53+
(void)value_length1;
5354
assert(value_length1 == (size_t)-1);
5455
}
5556

@@ -60,6 +61,7 @@ void usage_tetengo_property_saveLoad()
6061
{
6162
/* The value cannot be yet obtained from the property set for getting. */
6263
const size_t value_length2 = tetengo_property_propertySet_getString(p_props_for_getting, "foo", NULL, 0);
64+
(void)value_length2;
6365
assert(value_length2 == (size_t)-1);
6466
}
6567

library/trie/test/src/usage_tetengo.trie.search_c.c

+2
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,14 @@ void usage_tetengo_trie_search()
8080
{
8181
/* If a perfect-matching key is found, its value is returned. */
8282
const int* const p_found_for_gionbashi = (const int*)tetengo_trie_trie_find(p_trie, "gionbashi");
83+
(void)p_found_for_gionbashi;
8384
assert(p_found_for_gionbashi);
8485
assert(*p_found_for_gionbashi == 5);
8586
}
8687
{
8788
/* If not found, NULL is returned. */
8889
const int* const p_found_for_hanabatachou = (const int*)tetengo_trie_trie_find(p_trie, "hanabatachou");
90+
(void)p_found_for_hanabatachou;
8991
assert(!p_found_for_hanabatachou);
9092
}
9193

library/trie/test/src/usage_tetengo.trie.search_cpp.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ namespace usage_tetengo::trie
6565

6666
// Searches the trie.
6767
// If a perfect-matching key is found, its value is returned.
68-
const int* const p_found_for_gionbashi = trie_.find("gionbashi");
68+
[[maybe_unused]] const int* const p_found_for_gionbashi = trie_.find("gionbashi");
6969
assert(p_found_for_gionbashi);
7070
assert(*p_found_for_gionbashi == 5);
7171

7272
// If not found, nullptr is returned.
73-
const int* const p_found_for_hanabatachou = trie_.find("hanabatachou");
73+
[[maybe_unused]] const int* const p_found_for_hanabatachou = trie_.find("hanabatachou");
7474
assert(!p_found_for_hanabatachou);
7575

7676
// Creates a subtrie consisting of the elements with the common key prefix.

0 commit comments

Comments
 (0)