Fixes to prevent static analysis warnings.

This commit is contained in:
guangli-dai 2025-05-02 15:58:27 -07:00 committed by Qi Wang
parent 8347f1045a
commit 37bf846cc3
7 changed files with 8 additions and 8 deletions

View file

@ -153,7 +153,7 @@ struct hpa_shard_s {
peak_demand_t peak_demand;
};
bool hpa_hugepage_size_exceeds_limit();
bool hpa_hugepage_size_exceeds_limit(void);
/*
* Whether or not the HPA can be used given the current configuration. This is
* is not necessarily a guarantee that it backs its allocations by hugepages,

View file

@ -55,7 +55,7 @@ extern size_t sz_large_pad;
extern void sz_boot(const sc_data_t *sc_data, bool cache_oblivious);
JEMALLOC_ALWAYS_INLINE bool
sz_large_size_classes_disabled() {
sz_large_size_classes_disabled(void) {
return opt_disable_large_size_classes;
}