@@ -1809,7 +1809,7 @@ class ram_page_settings {
1809
1809
* @brief Fetches all available huge page sizes for the given NUMA node.
1810
1810
* @note Kernel support doesn't mean that pages of that size have a valid mount point.
1811
1811
*/
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 {
1813
1813
assert (node_id >= 0 && " NUMA node ID must be non-negative" );
1814
1814
1815
1815
#if FU_ENABLE_NUMA // We need Linux for `opendir`
@@ -1914,6 +1914,7 @@ class ram_page_settings {
1914
1914
count_sizes_ = count_sizes;
1915
1915
return true ;
1916
1916
#else
1917
+ fu_unused_ (node_id);
1917
1918
return false ;
1918
1919
#endif
1919
1920
}
@@ -2976,14 +2977,14 @@ struct linux_colocated_pool {
2976
2977
* @brief Returns the number of threads in one NUMA-specific local @b colocation.
2977
2978
* @retval Same value as `threads_count()`, as we only support one colocation.
2978
2979
*/
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 (); }
2980
2981
2981
2982
/* *
2982
2983
* @brief Converts a @p `global_thread_index` to a local thread index within a @b colocation.
2983
2984
* @retval Same value as @p `global_thread_index`, as we only support one colocation.
2984
2985
*/
2985
2986
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 {
2987
2988
return global_thread_index;
2988
2989
}
2989
2990
0 commit comments