mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-26 10:37:19 +03:00
Make eligible functions static
The codebase is already very disciplined in making any function which can be `static`, but there are a few that appear to have slipped through the cracks.
This commit is contained in:
parent
6841110bd6
commit
70344a2d38
9 changed files with 16 additions and 14 deletions
|
|
@ -14,7 +14,7 @@ void fake_abort(const char *message) {
|
|||
#define LARGE_SIZE1 SC_LARGE_MINCLASS
|
||||
#define LARGE_SIZE2 (LARGE_SIZE1 * 2)
|
||||
|
||||
void *
|
||||
static void *
|
||||
test_invalid_size_pre(size_t sz) {
|
||||
safety_check_set_abort(&fake_abort);
|
||||
|
||||
|
|
@ -25,7 +25,7 @@ test_invalid_size_pre(size_t sz) {
|
|||
return ptr;
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
test_invalid_size_post(void) {
|
||||
expect_true(fake_abort_called, "Safety check didn't fire");
|
||||
safety_check_set_abort(NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue