mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 05:04:33 +02:00
console: Suppress unused warning asprintf result
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user