fix(userspace/apps/test): make gcc shut up about "infinite recursion detected"

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
EnderIce2 2025-03-13 23:25:52 +00:00
parent a53d41008c
commit 40f46312f8
No known key found for this signature in database
GPG Key ID: 2EE20AF089811A5A

View File

@ -883,9 +883,12 @@ void fork_bomb_syscall()
#endif #endif
} }
volatile int __dummy = 0;
int fill_stack(void *p) int fill_stack(void *p)
{ {
__attribute__((used)) char buf[512]; if (__dummy == 1)
return (int)(__UINTPTR_TYPE__)p;
char buf[512];
return fill_stack(buf); return fill_stack(buf);
} }