mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-20 09:30:31 +00:00
Fix some static analysis issues
This commit is contained in:
parent
fb54604b31
commit
f147d3dde9
30 changed files with 375 additions and 266 deletions
|
@ -29,6 +29,10 @@
|
|||
#define TINYMALLOC_MAX_ALIGN sizeof(max_align_t)
|
||||
#endif
|
||||
|
||||
#pragma GCC push_options
|
||||
#pragma GCC diagnostic ignored "-Wanalyzer-malloc-leak"
|
||||
#pragma GCC diagnostic ignored "-Wanalyzer-use-after-free"
|
||||
|
||||
static struct {
|
||||
alignas(max_align_t) char bits[TINYMALLOC_MAX_BYTES];
|
||||
char *memory;
|
||||
|
@ -178,3 +182,5 @@ OutOfMemory:
|
|||
errno = ENOMEM;
|
||||
return 0;
|
||||
}
|
||||
|
||||
#pragma GCC pop_options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue