Skip to content

Commit

Permalink
🔨 Fix older GCC CXXFLAGS warning
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Oct 19, 2021
1 parent 5f6d9e9 commit 3015842
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions buildroot/share/PlatformIO/scripts/common-cxxflags.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
# Convenience script to apply customizations to CPP flags
#
Import("env")
env.Append(CXXFLAGS=[
"-Wno-register"

cxxflags = [
#"-Wno-incompatible-pointer-types",
#"-Wno-unused-const-variable",
#"-Wno-maybe-uninitialized",
#"-Wno-sign-compare"
])
]
if "teensy" not in env['PIOENV']:
cxxflags += ["-Wno-register"]
env.Append(CXXFLAGS=cxxflags)

#
# Add CPU frequency as a compile time constant instead of a runtime variable
Expand Down

0 comments on commit 3015842

Please sign in to comment.