Skip to content

Commit 81ef02e

Browse files
committed
🔨 Fix sim build with gcc-14
1 parent 0226692 commit 81ef02e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

buildroot/share/PlatformIO/scripts/common-cxxflags.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
if "teensy" not in env["PIOENV"]:
1717
cxxflags += ["-Wno-register"]
1818
env.Append(CXXFLAGS=cxxflags)
19+
env.Append(CFLAGS=["-Wno-implicit-function-declaration"])
1920

2021
#
2122
# Add CPU frequency as a compile time constant instead of a runtime variable
@@ -27,8 +28,8 @@ def add_cpu_freq():
2728
# Useful for JTAG debugging
2829
#
2930
# It will separate release and debug build folders.
30-
# It useful to keep two live versions: a debug version for debugging and another for
31-
# release, for flashing when upload is not done automatically by jlink/stlink.
31+
# This is useful to keep two live versions: a debug version and a release version,
32+
# for flashing when upload is not done automatically by jlink/stlink.
3233
# Without this, PIO needs to recompile everything twice for any small change.
3334
if env.GetBuildType() == "debug" and env.get("UPLOAD_PROTOCOL") not in ["jlink", "stlink", "custom"]:
3435
env["BUILD_DIR"] = "$PROJECT_BUILD_DIR/$PIOENV/debug"

0 commit comments

Comments
 (0)