Просмотр исходного кода

Update tusb_option.h

Makes ISO compiler happy
Nikitarc 3 лет назад
Родитель
Сommit
15c01f20ec
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/tusb_option.h

+ 3 - 0
src/tusb_option.h

@@ -27,6 +27,9 @@
 #ifndef _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"
 
 #define TUSB_VERSION_MAJOR     0