From f4747357915aa3d638aee494c23395c0e1334bb0 Mon Sep 17 00:00:00 2001 From: morris Date: Fri, 6 May 2022 18:35:56 +0800 Subject: [PATCH] doc: add esp_hd_cb_t type definition as known warnings --- docs/sphinx-known-warnings.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/docs/sphinx-known-warnings.txt b/docs/sphinx-known-warnings.txt index a8a50570fe..901dc0d382 100644 --- a/docs/sphinx-known-warnings.txt +++ b/docs/sphinx-known-warnings.txt @@ -12,6 +12,35 @@ esp_bt_defs.inc:line: WARNING: Duplicate C declaration, also defined at api-refe Declaration is '.. c:macro:: ESP_BD_ADDR_LEN'. esp_bt_defs.inc:line: WARNING: Duplicate C++ declaration, also defined at api-reference/bluetooth/esp_blufi:line. Declaration is '.. cpp:type:: uint8_t esp_bd_addr_t [ESP_BD_ADDR_LEN]'. +esp_hidd_api.inc:line: WARNING: Error in type declaration. +If typedef-like declaration: + Type must be either just a name or a typedef-like declaration. + If just a name: + Error in declarator or parameters-and-qualifiers + Invalid C++ declaration: Expected identifier in nested name, got keyword: void [error at 4] + void() esp_hd_cb_t (esp_hidd_cb_event_t event, esp_hidd_cb_param_t *param) + ----^ + If typedef-like declaration: + Error in declarator + If declarator-id with parameters-and-qualifiers: + Invalid C++ declaration: Expected identifier in nested name. [error at 4] + void() esp_hd_cb_t (esp_hidd_cb_event_t event, esp_hidd_cb_param_t *param) + ----^ + If parenthesis in noptr-declarator: + Error in declarator or parameters-and-qualifiers + If pointer to member declarator: + Invalid C++ declaration: Expected identifier in nested name. [error at 5] + void() esp_hd_cb_t (esp_hidd_cb_event_t event, esp_hidd_cb_param_t *param) + -----^ + If declarator-id: + Invalid C++ declaration: Expected identifier in nested name. [error at 5] + void() esp_hd_cb_t (esp_hidd_cb_event_t event, esp_hidd_cb_param_t *param) + -----^ +If type alias or template alias: + Invalid C++ declaration: Expected identifier in nested name, got keyword: void [error at 4] + void() esp_hd_cb_t (esp_hidd_cb_event_t event, esp_hidd_cb_param_t *param) + ----^ + esp_spp_api.inc:line: WARNING: Error in type declaration. If typedef-like declaration: Type must be either just a name or a typedef-like declaration.