瀏覽代碼

Add declarations of private nvs functions (nvs_*) in nvs_flash component to fix C++ -Wmissing-declarations warning

Merges https://github.com/espressif/esp-idf/pull/1956
Paul Reimer 7 年之前
父節點
當前提交
c83c3b64cd
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      components/nvs_flash/src/nvs_api.cpp

+ 3 - 0
components/nvs_flash/src/nvs_api.cpp

@@ -28,6 +28,9 @@ static const char* TAG = "nvs";
 #define ESP_LOGD(...)
 #define ESP_LOGD(...)
 #endif
 #endif
 
 
+extern "C" void nvs_dump(const char *partName);
+extern "C" esp_err_t nvs_flash_init_custom(const char *partName, uint32_t baseSector, uint32_t sectorCount);
+
 class HandleEntry : public intrusive_list_node<HandleEntry>
 class HandleEntry : public intrusive_list_node<HandleEntry>
 {
 {
     static uint32_t s_nvs_next_handle;
     static uint32_t s_nvs_next_handle;