Skip to content

Commit

Permalink
Fix build on RIOT
Browse files Browse the repository at this point in the history
  • Loading branch information
LasseRosenow committed Oct 28, 2024
1 parent 7ad9da2 commit 5a47940
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/riot/hello/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
/* Structs */
DEFINE_TIMER_STRUCT(MyTimer, 1)
DEFINE_REACTION_STRUCT(MyReactor, 0, 0)
typedef struct {
Reaction super;
Trigger *effects[(0)];
} MyReactor_Reaction0;

typedef struct {
Reactor super;
Expand Down
3 changes: 3 additions & 0 deletions make/riot/external_modules/reactor-uc/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ CFLAGS := $(filter-out -Wstrict-prototypes,$(CFLAGS))
# Remove the -Wold-style-definition flag for this module
CFLAGS := $(filter-out -Wold-style-definition,$(CFLAGS))

# Remove the -Werror flag for this module
CFLAGS := $(filter-out -Werror,$(CFLAGS))

# Use an immediate variable to evaluate `MAKEFILE_LIST` now
USEMODULE_INCLUDES_reactor-uc := $(LAST_MAKEFILEDIR)/../../../../include
USEMODULE_INCLUDES += $(USEMODULE_INCLUDES_reactor-uc)

0 comments on commit 5a47940

Please sign in to comment.