Преглед на файлове

🔨 Fix older GCC CXXFLAGS warning

Scott Lahteine преди 2 години
родител
ревизия
b69971f06a
променени са 1 файла, в които са добавени 6 реда и са изтрити 3 реда
  1. 6
    3
      buildroot/share/PlatformIO/scripts/common-cxxflags.py

+ 6
- 3
buildroot/share/PlatformIO/scripts/common-cxxflags.py Целия файл

@@ -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…
Отказ
Запис