Reduce warnings, extern "C" cleanup (#20279)

This commit is contained in:
Scott Lahteine committed 2021-04-29 08:45:07 -05:00
1 parent 0c24347cdb
commit 664e9d6dfe
26 files changed
+170 -122

No files matched your search

+7 -3
View File
@@ -140,15 +140,19 @@ void _delay_ms(const int delay);
extern "C" char* _sbrk(int incr);
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"
#if GCC_VERSION <= 50000
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"
#endif
static inline int freeMemory() {
volatile char top;
return &top - reinterpret_cast<char*>(_sbrk(0));
}
#pragma GCC diagnostic pop
#if GCC_VERSION <= 50000
#pragma GCC diagnostic pop
#endif
//
// ADC