util/consideredharmful: work around some false positives in clang 18

This commit is contained in:
Andrei Alexeyev 2024-05-16 22:24:43 +02:00
parent 76886a3f44
commit 0fc68b5778
No known key found for this signature in database
GPG key ID: 72D26128040B9690

View file

@ -11,6 +11,9 @@
#include <stdio.h>
// XXX: this header trips some of these deprecation warnings; include it early as a workaround
#include <SDL_cpuinfo.h>
//
// safeguards against some dangerous or otherwise undesirable practices
//
@ -73,7 +76,6 @@ int rand(void);
attr_deprecated("Use tsrand_seed instead")
void srand(uint);
INLINE void *libc_malloc(size_t size) { return malloc(size); }
#undef malloc
attr_deprecated("Use the memory.h API instead")