Remove unused function: jv_mem_invalidate, jv_mem_uninit_setup (#2636)

This commit is contained in:
itchyny authored and GitHub committed 2023-06-28 22:59:41 +09:00
1 parent d5dd41e2dc
commit 03db5509cb
2 files changed
-23

No files matched your search

-12
View File
@@ -165,15 +165,3 @@ void* jv_mem_realloc(void* p, size_t sz) {
}
return p;
}
#ifndef NDEBUG
volatile char jv_mem_uninitialised;
__attribute__((constructor)) void jv_mem_uninit_setup(){
// ignore warning that this reads uninitialized memory - that's the point!
#ifndef __clang_analyzer__
char* p = malloc(1);
jv_mem_uninitialised = *p;
free(p);
#endif
}
#endif