Philippe G před 3 roky
rodič
revize
17a3058b23

+ 5 - 3
components/platform_config/platform_config.h

@@ -8,9 +8,7 @@
 #ifdef __cplusplus
 extern "C" {
 #endif
-#ifdef __cplusplus
-}
-#endif
+
 #define DECLARE_SET_DEFAULT(t) void config_set_default_## t (const char *key, t  value);
 #define DECLARE_GET_NUM(t) esp_err_t config_get_## t (const char *key, t *  value);
 #ifndef FREE_RESET
@@ -45,3 +43,7 @@ esp_err_t config_set_value(nvs_type_t nvs_type, const char *key, const void * va
 nvs_type_t  config_get_item_type(cJSON * entry);
 void * config_safe_alloc_get_entry_value(nvs_type_t nvs_type, cJSON * entry);
 
+#ifdef __cplusplus
+}
+#endif
+

+ 1 - 10
components/squeezelite/CMakeLists.txt

@@ -15,19 +15,10 @@ idf_component_register( SRC_DIRS . external ac101 tas57xx wm8978
 						 EMBED_FILES vu.data
 )
 
-set_source_files_properties(mad.c
+set_source_files_properties(mad.c pcm.c flac.c alac.c helix-aac.c vorbis.c opus.c
     PROPERTIES COMPILE_FLAGS
     -Wno-maybe-uninitialized 
 )
-set_source_files_properties(pcm.c
-    PROPERTIES COMPILE_FLAGS
-    -Wno-maybe-uninitialized
-)
-
-set_source_files_properties(flac.c
-    PROPERTIES COMPILE_FLAGS
-    -Wno-maybe-uninitialized
-)
 
 add_definitions(-DLINKALL -DLOOPBACK -DNO_FAAD -DEMBEDDED -DTREMOR_ONLY -DCUSTOM_VERSION=${BUILD_NUMBER})