Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
Node: Bump C++ to v20 and C to v17 (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnsAnns authored May 14, 2024
2 parents 832b26a + c064ef2 commit 44202d9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion node/code/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,18 @@ SHOULD_RUN_KCONFIG ?=
# Include "inc" directory for the header files
INCLUDES += -I$(CURDIR)/inc

CXXEXFLAGS += -std=c++17 -Wall -Wextra
# Set the C standard to C17 [C23 (even experimental) is not yet supported]
# and enable all warnings
CFLAGS += -std=c17 -Wall -Wextra

# Set the C++ standard to C++20 [C++23 with all the cool stuff is not yet supported]
# and enable all warnings
CXXEXFLAGS += -std=c++20 -Wall -Wextra

# Disable volatile warnings
# C++20 introduced a deprecation for this, which was then
# reverted in C++23 because it wasn't thought through
CXXEXFLAGS += -Wno-volatile

include $(RIOTBASE)/Makefile.include

Expand Down

0 comments on commit 44202d9

Please sign in to comment.