Browse Source

🔨 Fix older GCC CXXFLAGS warning

Scott Lahteine 2 years ago
parent
commit
b69971f06a
1 changed files with 6 additions and 3 deletions
  1. 6
    3
      buildroot/share/PlatformIO/scripts/common-cxxflags.py

+ 6
- 3
buildroot/share/PlatformIO/scripts/common-cxxflags.py View File

@@ -3,13 +3,16 @@
3 3
 # Convenience script to apply customizations to CPP flags
4 4
 #
5 5
 Import("env")
6
-env.Append(CXXFLAGS=[
7
-  "-Wno-register"
6
+
7
+cxxflags = [
8 8
   #"-Wno-incompatible-pointer-types",
9 9
   #"-Wno-unused-const-variable",
10 10
   #"-Wno-maybe-uninitialized",
11 11
   #"-Wno-sign-compare"
12
-])
12
+]
13
+if "teensy" not in env['PIOENV']:
14
+	cxxflags += ["-Wno-register"]
15
+env.Append(CXXFLAGS=cxxflags)
13 16
 
14 17
 #
15 18
 # Add CPU frequency as a compile time constant instead of a runtime variable

Loading…
Cancel
Save