Skip to content

Commit

Permalink
Fix modular build
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc committed Oct 25, 2024
1 parent e190c6b commit a84ec1b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/z_api_liveliness_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include "zenoh-pico/api/primitives.h"
#include "zenoh-pico/api/types.h"

#if Z_FEATURE_QUERY == 1

#undef NDEBUG
#include <assert.h>
typedef struct context_t {
Expand Down Expand Up @@ -157,3 +159,10 @@ int main(int argc, char** argv) {
test_liveliness_sub();
test_liveliness_get();
}

#else // Z_FEATURE_QUERY == 1
int main(int argc, char** argv) {
(void)argc;
(void)argv;
}
#endif // Z_FEATURE_QUERY == 1

0 comments on commit a84ec1b

Please sign in to comment.