Merge branch 'bugfix/host_tools_warnings' into 'master'

Fix host tools warnings

See merge request idf/esp-idf!2729
This commit is contained in:
Angus Gratton 2018-07-25 08:55:29 +08:00
commit 21f327060b
3 changed files with 5 additions and 2 deletions

View file

@ -30,6 +30,8 @@
#include "argtable3.h" #include "argtable3.h"
#pragma GCC diagnostic ignored "-Wclobbered"
/******************************************************************************* /*******************************************************************************
* This file is part of the argtable3 library. * This file is part of the argtable3 library.
* *

View file

@ -104,7 +104,8 @@ esp_err_t esp_console_cmd_register(const esp_console_cmd_t *cmd)
/* Prepend a space before the hint. It separates command name and /* Prepend a space before the hint. It separates command name and
* the hint. arg_print_syntax below adds this space as well. * the hint. arg_print_syntax below adds this space as well.
*/ */
asprintf(&item->hint, " %s", cmd->hint); int unused __attribute__((unused));
unused = asprintf(&item->hint, " %s", cmd->hint);
} else if (cmd->argtable) { } else if (cmd->argtable) {
/* Generate hint based on cmd->argtable */ /* Generate hint based on cmd->argtable */
char *buf = NULL; char *buf = NULL;

View file

@ -23,7 +23,7 @@ const char* TAG = "SPIFFS";
void spiffs_api_lock(spiffs *fs) void spiffs_api_lock(spiffs *fs)
{ {
xSemaphoreTake(((esp_spiffs_t *)(fs->user_data))->lock, portMAX_DELAY); (void) xSemaphoreTake(((esp_spiffs_t *)(fs->user_data))->lock, portMAX_DELAY);
} }
void spiffs_api_unlock(spiffs *fs) void spiffs_api_unlock(spiffs *fs)