Fix sanitizer builds with clang (#1402)

By including <stdatomic.h> after the other includes in the unit test, we
can avoid redefining a macro which led to a build failure.

Fixes #1394

---------

Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
This commit is contained in:
Viktor Söderqvist 2024-12-07 10:26:31 +01:00 committed by GitHub
parent a2fe6af457
commit f20d629dbe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,9 +1,9 @@
#include <stdatomic.h>
#include "../networking.c"
#include "../server.c"
#include "test_help.h"
#include <stdatomic.h>
int test_backupAndUpdateClientArgv(int argc, char **argv, int flags) {
UNUSED(argc);
UNUSED(argv);