Bladeren bron

Update tusb_option.h

Makes ISO compiler happy
Nikitarc 3 jaren geleden
bovenliggende
commit
15c01f20ec
1 gewijzigde bestanden met toevoegingen van 3 en 0 verwijderingen
  1. 3 0
      src/tusb_option.h

+ 3 - 0
src/tusb_option.h

@@ -27,6 +27,9 @@
 #ifndef _TUSB_OPTION_H_
 #ifndef _TUSB_OPTION_H_
 #define _TUSB_OPTION_H_
 #define _TUSB_OPTION_H_
 
 
+// To avoid GCC compiler warnings when -pedantic option is used (strict ISO C)
+typedef int make_iso_compilers_happy ;
+
 #include "common/tusb_compiler.h"
 #include "common/tusb_compiler.h"
 
 
 #define TUSB_VERSION_MAJOR     0
 #define TUSB_VERSION_MAJOR     0