Procházet zdrojové kódy

Trust STM32 gcc versions

Scott Lahteine před 3 roky
rodič
revize
3f93b8baed
2 změnil soubory, kde provedl 6 přidání a 14 odebrání
  1. 3
    7
      Marlin/src/HAL/STM32/HAL.h
  2. 3
    7
      Marlin/src/HAL/STM32F1/HAL.h

+ 3
- 7
Marlin/src/HAL/STM32/HAL.h Zobrazit soubor

143
 
143
 
144
 extern "C" char* _sbrk(int incr);
144
 extern "C" char* _sbrk(int incr);
145
 
145
 
146
-#if GCC_VERSION <= 50000
147
-  #pragma GCC diagnostic push
148
-  #pragma GCC diagnostic ignored "-Wunused-function"
149
-#endif
146
+#pragma GCC diagnostic push
147
+#pragma GCC diagnostic ignored "-Wunused-function"
150
 
148
 
151
 static inline int freeMemory() {
149
 static inline int freeMemory() {
152
   volatile char top;
150
   volatile char top;
153
   return &top - reinterpret_cast<char*>(_sbrk(0));
151
   return &top - reinterpret_cast<char*>(_sbrk(0));
154
 }
152
 }
155
 
153
 
156
-#if GCC_VERSION <= 50000
157
-  #pragma GCC diagnostic pop
158
-#endif
154
+#pragma GCC diagnostic pop
159
 
155
 
160
 //
156
 //
161
 // ADC
157
 // ADC

+ 3
- 7
Marlin/src/HAL/STM32F1/HAL.h Zobrazit soubor

191
 
191
 
192
 void _delay_ms(const int delay);
192
 void _delay_ms(const int delay);
193
 
193
 
194
-#if GCC_VERSION <= 50000
195
-  #pragma GCC diagnostic push
196
-  #pragma GCC diagnostic ignored "-Wunused-function"
197
-#endif
194
+#pragma GCC diagnostic push
195
+#pragma GCC diagnostic ignored "-Wunused-function"
198
 
196
 
199
 /*
197
 /*
200
 extern "C" {
198
 extern "C" {
209
   return &top - _sbrk(0);
207
   return &top - _sbrk(0);
210
 }
208
 }
211
 
209
 
212
-#if GCC_VERSION <= 50000
213
-  #pragma GCC diagnostic pop
214
-#endif
210
+#pragma GCC diagnostic pop
215
 
211
 
216
 //
212
 //
217
 // ADC
213
 // ADC

Loading…
Zrušit
Uložit