Skip to content

Commit 6e8f415

Browse files
committed
Fix: Mark unused variables
1 parent a7a76b3 commit 6e8f415

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

include/fork_union.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1809,7 +1809,7 @@ class ram_page_settings {
18091809
* @brief Fetches all available huge page sizes for the given NUMA node.
18101810
* @note Kernel support doesn't mean that pages of that size have a valid mount point.
18111811
*/
1812-
bool try_harvest(numa_node_id_t node_id) noexcept {
1812+
bool try_harvest(FU_MAYBE_UNUSED_ numa_node_id_t node_id) noexcept {
18131813
assert(node_id >= 0 && "NUMA node ID must be non-negative");
18141814

18151815
#if FU_ENABLE_NUMA // We need Linux for `opendir`
@@ -1914,6 +1914,7 @@ class ram_page_settings {
19141914
count_sizes_ = count_sizes;
19151915
return true;
19161916
#else
1917+
fu_unused_(node_id);
19171918
return false;
19181919
#endif
19191920
}
@@ -2976,14 +2977,14 @@ struct linux_colocated_pool {
29762977
* @brief Returns the number of threads in one NUMA-specific local @b colocation.
29772978
* @retval Same value as `threads_count()`, as we only support one colocation.
29782979
*/
2979-
thread_index_t threads_count(index_t colocation_index) const noexcept { return threads_count(); }
2980+
thread_index_t threads_count(FU_MAYBE_UNUSED_ index_t colocation_index) const noexcept { return threads_count(); }
29802981

29812982
/**
29822983
* @brief Converts a @p `global_thread_index` to a local thread index within a @b colocation.
29832984
* @retval Same value as @p `global_thread_index`, as we only support one colocation.
29842985
*/
29852986
constexpr thread_index_t thread_local_index(thread_index_t global_thread_index,
2986-
index_t colocation_index = 0) const noexcept {
2987+
FU_MAYBE_UNUSED_ index_t colocation_index = 0) const noexcept {
29872988
return global_thread_index;
29882989
}
29892990

0 commit comments

Comments
 (0)